Click to See Complete Forum and Search --> : Cascading Menus cross frames?


thamatrixhazu
07-29-2003, 03:35 PM
I recent found some javascript code that creates cascading menus. Does anyone know how to make the menus jump frames? I have a cross frame DHTML version, but the javascript version is much smaller. Can anyone help me?

Exuro
07-29-2003, 05:42 PM
You'd have to change everywhere in the code where an element is being referred to in a different frame to parent.frameName.document rather than just document. You would also have to change anywhere a function in a different frame is being called to parent.frameName.functionName() instead of just functionName(). For some reason I have a feeling that isn't going to help you much though...

thamatrixhazu
07-30-2003, 08:05 AM
Thanks for the tip. So far I haven't noticed anywhere where it refers to the the frames since this code that I have wasn't set up for that. I'll play around with it though. Have you have made a cascading javascript menu where it the hoovers show up in a different frame?

Exuro
07-30-2003, 12:34 PM
I haven't ever actually used one before on any site I've worked on. I'm personally extreamly biased against frames ;). However, I helped someone else out on a cross-frame DHTML menu in the DHTML forum in this thread:

http://forums.webdeveloper.com/showthread.php?s=&threadid=13700

thamatrixhazu
07-30-2003, 01:36 PM
Amen brotha ... I hate frames too. I had this laid out a completely different way, then management tells me to do it in frames! Typical. I'll keep pluggin away at it. Thanks for the input.