Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Nested DIV tags and netscape..

Status
Not open for further replies.

Zumbro

Technical User
Nov 10, 2001
6
US
Hi,

I've used DIV and Style positioning for handling layers.
I've made one layer surrounding all other layers making them nested.

<DIV id=&quot;layer1&quot; style=&quot;positon..etc..etc&quot;> here comes all other info and all other nested layers
</DIV>

The problem is:

I got a javascript function that opens a layer by its id; var lyr = (nestref)? eval 'document.'+nestref+'.document.'+id+'.document') : document.layers[id].document

Netscape complains that the document.layers[id].document doesnt have any properties..
If I take away the surrounding layer all works fine, but the reason for me to have it like this is that I can position the surrounding layer and all other layers follow it..

It's a bit fuzzy, but I really need help on this fast.. Has anyone else seen this kind of problem?

/umbro
 
Try moving the style declarations from the <div> tag to a seperate <style> tag in the <head> of your page. For some unknown reason I've had this very same error when trying to use nested <div>'s in Netscape. It all started to work normally once I moved the style stuff into it's own area.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top