Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Use of javascript to resize div heights

Guest
Dec 16, 2008 Dec 16, 2008
I'm using javascript to resize two divs (the 'navbar' navigation div on the left of the page, and the 'mainContent' div which sits to it's right).

The attached code shows how I'm doing it. The first three lines are added to my template, and the remaining is the contents of the javascript file (which I have not changed).

It used to work but as a result of making changes to my website it seems to have stopped working. I've checked the paths.

Can anyone suggest why it might be failing?

TOPICS
Server side applications
296
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Deleted User
Dec 17, 2008 Dec 17, 2008
Found the answer. I had changed the navbar to use a list for the contents whereas before the contents were within paragraph tags. So the call to the function needed to reflect this, ie to become <body onLoad="P7_equalCols2(0,'navbar','li','mainContent','p')">
Translate
Guest
Dec 17, 2008 Dec 17, 2008
Found the answer. I had changed the navbar to use a list for the contents whereas before the contents were within paragraph tags. So the call to the function needed to reflect this, ie to become <body onLoad="P7_equalCols2(0,'navbar','li','mainContent','p')">
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 17, 2008 Dec 17, 2008
LATEST
Found the answer. I had changed the navbar to use a list for the contents whereas before the contents were within paragraph tags. So the call to the function needed to reflect this, ie to become <body onLoad="P7_equalCols2(0,'navbar','li','mainContent','p')">
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines