dayve
16.05.2001, 20:02
In your CoolMenus FAQ you mention this little tidbit:
<BLOCKQUOTE id=quote><font size=1 face="Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Q: Why doesnt the menu work when I load www.yahoo.com in my main frame?
A: When you load a new page in your main frame the script tries to "write" to the new page in the main frame. When loading a page in the main frame that is not on the same domain as your menu script, the script will not have permission to update the page, so the script won't work. This is not something I can fix, the browsers are made like that for security reasons. I have however added a error trapping function that should stop the page from giving you a error if you choose to load pages from another domain in your main frame, and the top menu items should still work. So if you have links "back" to your pages on the top items they should still work.
The best solution however is to try and avoid loading pages from other domains in your main page and load them in a new window in stead.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Arial, Helvetica" size=2 id=quote>
My question... is there a clean way of using an IFRAME/ILAYER to compensate for this? I toyed around with the idea and never completed the idea but here is what I ended up with at that time:
http://hafresno.org/dhtml/cfm2/index_ex1.html
This is real ugly but it gives you the main idea... I am really bad about abandonning personal projects, maybe it has something to do with my 60+ hour work schedule a week!
dayve
NIN Discussion: http://www.burningsouls.com/forum
<BLOCKQUOTE id=quote><font size=1 face="Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Q: Why doesnt the menu work when I load www.yahoo.com in my main frame?
A: When you load a new page in your main frame the script tries to "write" to the new page in the main frame. When loading a page in the main frame that is not on the same domain as your menu script, the script will not have permission to update the page, so the script won't work. This is not something I can fix, the browsers are made like that for security reasons. I have however added a error trapping function that should stop the page from giving you a error if you choose to load pages from another domain in your main frame, and the top menu items should still work. So if you have links "back" to your pages on the top items they should still work.
The best solution however is to try and avoid loading pages from other domains in your main page and load them in a new window in stead.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Arial, Helvetica" size=2 id=quote>
My question... is there a clean way of using an IFRAME/ILAYER to compensate for this? I toyed around with the idea and never completed the idea but here is what I ended up with at that time:
http://hafresno.org/dhtml/cfm2/index_ex1.html
This is real ugly but it gives you the main idea... I am really bad about abandonning personal projects, maybe it has something to do with my 60+ hour work schedule a week!
dayve
NIN Discussion: http://www.burningsouls.com/forum