Results 1 to 6 of 6

Thread: All Levels Menu in iframe: problem

  1. #1
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default All Levels Menu in iframe: problem

    Problem: when you put 'demo.htm' or 'demo2.htm' of the All Levels Navigational Menu 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).
    ===
    Arie.
    Last edited by molendijk; 01-15-2009 at 05:07 PM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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.
    DD Admin

  3. #3
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    The problem occurs here and here 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
    Anyhow, I found that if you take away <script type="text/javascript">ddlevelsmenu.setup("ddtopmenubar", "topbar")</script> and <script type="text/javascript">
    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,
    ===
    Arie.

  4. #4
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    DDADMIN, the FF that has the same problems as Flock (see previous post) is Firefox version 2.0.0.14.

    Arie.

  5. #5
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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:

    Code:
    <iframe src="demo2.htm" style='width:100%; height: 700px'></iframe>
    DD Admin

  6. #6
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    DDADMIN,
    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, which is posted in this 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 2.0.0.14. I put an illustration of the problem here. 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.

    Arie.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •