Hello,
I’ve got some code that’s working well in IE, but not working yet in Netscape Navigator. There are two issues I’ve noticed so far regarding frames. And of course, all help is appreciated! ^_^
Here’s the setup: my main page, default.html, is a frameset comprised of two frames; one frame is “list” and the other is “main”.
Also, default.html has the bulk of my javascript functions inside it’s <head> tag so that when users roam around the frames, they don’t need to keep downloading the javascript functions each time, just the html. Hence, the child frames call any javascript functions they need through a “parent.” call.
Here are my two frame problems in Netscape:
(issue 1) The javascript in default.html can’t reference a child frame. For example this code (which is located in default.html):
fraMain = document.frames[‘main’].document;
works well in IE but not in NN. I have a debug alert() call after this that never gets reached in NN, and of course, the fraMain variable is not getting set. What should I do to reference the child frame in Netscape?
(issue 2) My “list” frame calls a javascript function on it’s onload event. Here’s the code (again, this is in default.html):
<FRAME Name=”list” Src=”inkwolf/images/” onload=”javascript:navChapt();”>
Again, the navChapt() function is called whenever the frame is reloaded in IE, but is not being called in NN. What should I do to have the onload event work in Netscape?
By the way, I’ve been testing my site out in Netscape Navigator 7.1, and MS Internet Explorer 6.0.
Thank you so much for the help!
-Matt