Discussion Locked

HTML/JAVASCRIPT updating multiple frames

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am developing a web pages in HTML. My problem is that I do use nested frames,
and from a link on my "menu" frame in one nesting level I am not able to update frames in another level.(I do not want to create a lot of frameset files to solve this because it will make my pages more complicated and take away some of the point in using frames; I then have to update all frames on the screen.)

I Do have A Javascript that almost work, and I guess that the solution has something to do with replacing the "parent" word.
Please help me :-)

*************
hovedsiden

*************

P.S.
*****************************************
Here are some of the content in my "frame" page. My problem is to change the content in "top" and "rute" from a link on the "meny" frame.

*****************************************

5 replies

by kevin.riggs

The line you say is in trouble is using a Key word or a Reserved word to name a frame. The word "top" refers to the initial "frameset" frame. Changing the webpage (url) for any frame.top means changing to have a non-framed webpage. Sounds like you just used the name "top" to refer to a frame that goes across the top of the browser window, just under the button bar and navigation bar. You may find that your code works if you just change the name and any references from "top" to "top_banner" or something like that.

by eira

Thank you Kevin.
It was the reserved word "top" together with a missing ";" at the end of the javascript that gave me trouble.
It now works fine.
:-)

by cedric king

I would agree with what the answer posted about 'top' being a reserved word. But if it doesn't work for you, you can try encapsulating the and in and refer to it accordingly though I think it might not be the reason too. Sorry I am unable to test it out but it should give you a guideline on solving it.
Regards.

by eira

I do not understand your suggestion. As far as I can see I have already encapsulated the frames.
But thank you anyway.

This discussion is closed to new replies.