Click to See Complete Forum and Search --> : problem with ns7
ahasverus
05-19-2003, 10:00 AM
I'm just an amateur, but I finally succeeded to make this way to navigate in a DHTML-site.
There is just one problem: ns7.
It's a kind of mousetrail and when you click on it it shows a menu.
It works in IE 5 and 6, even in Opera 7.02, but in ns7 it just seems to load an empty page.
Can someone help me?
You can find it here:
http://users.pandora.be/christoph.bielen/nav/index3.htm
There's no content yet, but the navigation should work.
Thanks!
In function startuitleg() you are probably writing a new page with uitleg.write(strtekst). The error "subl not defined" and an empty page point to this conclusion. Also layer methods are not supported (http://www.irt.org/xref/Layer.htm) in Netscape6+. Conside using DOM to support the latest browsers.
ahasverus
05-20-2003, 06:52 AM
Thanks, but I'm not sure how to solve the problem.
I'm not using the "layer-tag" from older Netscape browsers. I'm just using Div-tags and position them absolutely and make objects with them in javascript called "layer". So this shouldn't be a problem.
The uitleg.write statement should only write to the Div-tag with ID="nameDiv", like in IE or Opera. It writes the explanation in the white box. Why does it write a completely new page in NS7, and how can I avoid this?
Is the only option to skip this step in NS7, or is there a way around this problem?
I'd really like to use this way of navigation, but if it doesn't work in NS7, I'll just have to forget about it.:(
This write method is causing the problem with Netscape. Use innerHTML as Dave suggests or something like:
document.getElementById(elmID).firstChild.data=NewText;
this example is very basic!
I would avoid using the word "layer" except in it's correct context. You have objects, names and a function using "layer", it can cause errors. Use unique names as much as possible.
ahasverus
05-20-2003, 08:38 AM
Thank you!!!
It works!
You were right!
I just had to use innerHTML instead of write(). I didn't know Netscape supported innerHTML. Apparently it does from ns5+.
(I told you I was just an amateur)
Again, thank you!:)