PDA

View Full Version : CoolMenus3 and Yahoo


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

Shane
16.05.2001, 20:26
Ecs,
I think he does know what Tom was saying. Dayve came up with a way to load external pages into the site, using an ilayer, that way the menus can drop over them. So the external page is in the ilayer, but you are still on your own domain. I think the problem is that it is still kind of querky and not completely crossbrowser.

ShAnE

dayve
17.05.2001, 01:31
yeah, my coding in javascript is not the best so I am just hoping someone can perfect the "idea" that layers over "external" pages can be possible and would love to see this incorporated in CoolMenus, maybe CoolMenus IV :)

dayve

<center>
Nine Inch Nails Forum
http://www.nineinchnailz.com/forum
</center>

dayve
17.05.2001, 11:41
ahhh, a pessimist in town :)

dayve

<center>
Nine Inch Nails Forum
http://www.nineinchnailz.com/forum
</center>

PSECU
18.05.2001, 14:44
I would like this feature and have tried to work with Thomas on it. The previous version 'coolmenuframes' worked, as long as the site includes the reference within their pages...

<SCRIPT LANGUAGE="JavaScript1.2" src="http://www.yourdomainhere.com/scripts/cframe.js" TYPE="text/javascript"></SCRIPT>

I wish this could be an alternative option to 'CoolMenus3'. It would be the BEST of both worlds. <img src=icon_smile_wink.gif border=0 align=middle>

Virtually yours...
Craig Malcolm Petrou
Webmaster, PSECU
cpetrou@psecu.com