eek...
document.all['navmaarten'].offsetHeight
should return the height of the navmaarten div
I take it you have no influence over the content of each of the 3 sites? looking at the source of them it would appear that they are done with Modx too? if you can influence those pages then I’m sure we can work something else out.
Javascript really isn’t a very nice solution at all.
Taff
Adrian Lawley: www.adrianlawley.com
I do have influence We made them also its actually all one modx instalation with 3 folders one for each "column" the idea is that each column must remeber the content and menu item thats why I used iframes. I am open to any way to do this a better way.
Dimmy
ps i tryed this : <script>alert(document.all[’navada’].offsetHeight);</script> but i get this error:
document.all has no properties.
My Apologies
document.getElementById('NameOfDIV').offsetHeight
As to a different approach I noted that you are placing the content div above the the menu div in the markup (possibly for SEO reasons?)
If you decided to place the divs in their order of appearance you could do away with all the javascript couldn’t you?
Maybe I’m missing something, but all the best anyways...I tested the JS this time.
Good luck with the rest of your project,
Taff
Adrian Lawley: www.adrianlawley.com