I am with problems with the cross-frame when I have framesets within framesets. I followed the instructions of the file pop_help.html and when I uncomment the line, the browser (IE or FireFox) shows an error, saying that the variable "isRoot" does not exists. The structure of my menu is the same of the example came with file. I have the file frameset.html, which has 2 framesets (navmenu and content). Inside of frameset content can has frameset or not, depending the page called by menu. The menu appears in all pages, except the page that contains another frameset. Can you help me, please ? Thanks.
2) Angus TurnbullGroup: Moderators Posts: 4042Joined: 7 Dec 2003Location: New ZealandIP: 203.118.--.--
Posted:
Framesets-within-framesets is really not a good idea :). It's 2007 now -- there's hardly a need to use even one frameset! Try using a server-side language like PHP and include() your navigation on each page. It's just as easy and a lot more user friendly.
That said, if you are using the workaround indicated, make sure you include pop_events.js in all loaded content files, and have the core script only in the loaded document. Also, it's a good idea to keep your frameset tree the same, i.e. always load frames two levels deep and specify that in the menu 'parent' parameter.
- Angus.
3) molendijkGroup: Members Posts: 78Joined: 29 Nov 2005Location: The Netherlands (Groningen)IP: 84.86.--.--
Posted:
You don't have to use a CROSS-frame menu for your frame-based site. You can use the SINGLE-frame Cascading script or the FreeStyle script if you follow the instructions given at: http://www.dynamicdrive.com/forums/showthread.php?t=25009&highlight=molend ijk
This might solve your problem.
Arie Molendijk.
Arie.
4) rmonterrozaGroup: Members Posts: 1Joined: 14 Jan 2008Location: El SalvadorIP: 200.30.--.--
Posted:
Josh, Angus :
I had this problem too, and the way i resolved it was including the nested frameset in a iframe object.
the main frameset code is: <frameset rows="*" COLS="15%,*" frameborder="0" border="0"> <frame name="navmenu" src="navmenu.html"></frame> <frame name="content" src="marcoiframe.html"></frame> </frameset> <noframes></noframes>
For the menu to appear on the frame 'content' i had to use the iframe object in the file marcoiframe.html: <body> <script type="text/javascript" language="JavaScript1.2" src="../pop_events.js"></script> <iframe src="marco.html" width="800" height="500" scrolling="auto" frameborder="1"> <p>Texto alternativo para browsers que no aceptan iframes.</p> </iframe> </body>
the file marco.html is where the nested frameset is, so by doing this i had my menu working in nested framesets.