View Full Version : All Levels Menu in iframe: problem
01-15-2009, 01:40 PM
Problem: when you put 'demo.htm' or 'demo2.htm' of the All Levels Navigational Menu (http://dynamicdrive.com/dynamicindex1/ddlevelsmenu/index.htm) in an iframe (<iframe src="demo.htm"></iframe>), then the page doesn't finish loading. There seems to be an error in 'ddlevelsmenu-base.css' (warning: Error in parsing value for property 'display'. Declaration dropped. File:../ddlevelsfiles/ddlevelsmenu-base.css Line: 30).
01-15-2009, 10:41 PM
A CSS warning shouldn't disable the script altogether. Just quickly testing the script inside an IFRAME in FF3, it works for me. Please post a link to the page on your site that contains the problematic script so we can check it out.
01-16-2009, 12:44 AM
The problem occurs here (http://molendijk.110mb.com/problem/problem_demo.html) and here (http://molendijk.110mb.com/problem/problem_demo2.html) when you use Flock 1.2.7, and also when you use a FF-version that I don't remember. It's the Firefox I use at my work, but I'm absent (from work) for a couple of days, so I don't know right now. I'll tell you as soon as I know
ddlevelsmenu.setup("ddsidemenubar", "sidebar")</script>, then the problem disappears. But, of course, we don't want to take that away.
Thanks in advance for your help,
01-19-2009, 10:41 AM
DDADMIN, the FF that has the same problems as Flock (see previous post) is Firefox version 220.127.116.11.
01-19-2009, 09:11 PM
Ah I think I now what the issue is now. The problem is because your IFRAME as is isn't large enough to accommodate the sub menus when they are revealed to the right of the menu. Since there isn't enough room to the right to drop down the menu, the script right now drops the menu to the left of the main menu bar. If you look carefully at the left edge of the IFRAME, you'll see it. Or if you expand your IFRAME's height so there is enough room to the right, you can see the sub menus where you'd expect to see them:
<iframe src="demo2.htm" style='width:100%; height: 700px'></iframe>
01-19-2009, 10:32 PM
I'm afraid that's not the problem. The links I gave you were just to show that the page containing the iframe-with-the-menu doesn't finish loading.
I am developing a technique that enables us to include menus just by having <iframe src="menu.html"> etc. (IE) or <object data="menu.html"> etc. (non-IE) on the page, where the iframe and the object are 'full-size', yet don't hide the content of the page that contains them. An example can be found here (http://molendijk.110mb.com/include_menu8/smooth/page1.html), which is posted in this (http://dynamicdrive.com/forums/showthread.php?t=40694) thread. Now, when I apply the technique to the All Navigational Menu, then the pages containing the iframe or object (that contain the ddlevel-menu) don't finish loading in Flock 1.2.7 and in Firefox 18.104.22.168. I put an illustration of the problem here (http://molendijk.110mb.com/ddlevels/page1.html). Using the above mentioned browsers, click on the reload button on top of the page and keep the mouse there. You'll see that it indicates that the pages is loading for ever and ever. Only when you hover the mouse over the menus, the loading stops.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.