- Create Account

Problems with framesets within framesets

Forums > Cascading Popup Menus: Help > Problems with framesets within framesets
Author
Message

1) Josh Group: Guests
IP: 200.179.--.--
Dear Angus,

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 Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 203.118.--.--
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) molendijk Group: Members
Posts: 78 Joined: 29 Nov 2005 Location: The Netherlands (Groningen) IP: 84.86.--.--
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) rmonterroza Group: Members
Posts: 1 Joined: 14 Jan 2008 Location: El Salvador IP: 200.30.--.--
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.

  Hope  this helps.

          Roberto  Monterroza
          http://www.robmv.com
Roberto Monterroza
Software Engineer
www.robmv.com

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.