Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

Getting it to work out of Iframes

Home Forums Older releases 0.9.x Getting it to work out of Iframes

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1323
    Topshed
    Participant

    I am calling my menu from an iFrame and loading it into a second Iframe and it works fine and looks Great (thank you).
    Having got that far I can now succesfully load it into any other script with a call

    require_once('../smartmenus/BSmenu.htm');

    Doing it from the Iframe set, the result is appearing in the 2nd Iframe and it responds. exctly as expected.

    Now I want to remove the Iframes and include it as above in all my scri[ts
    But when I do that at fails to work although it shows the path in the bottom line of the browser.
    The path in the menu script is

    http://www.britishsteam.com/php_gwr/usr_gwr.php

    but it shows in the browser being called as

    www.britishsteam.com/php_gwr/usr_gwr.php

    The missing http:// i believe is the problem ???

    Loading http://www.britishsteam.com and selecting GWR and the top option show both menus responding.
    Loading that option direct

    http://www.britishsteam.com/php_gwr/usr_gwr.php

    Shows a great looking menu but it fails to work
    How do I get around this please
    Topshed

    #1598
    admin
    Keymaster

    You need to remove the following code from the pages now that you don’t use iframes:

    $(function() {
    	$('#main-menu').bind('select.smapi', function(e, item) {
    		var iframe2 = parent.document.getElementById('iframe2');
    		if (iframe2) {
    			iframe2.src = item.href;
    		}
    		return false;
    	});
    });

    Cheers!

    #1599
    Topshed
    Participant

    Thanks for the reply,
    I tried that early on and replaced it just in case, but both options have drop downs that will not respond, even direct from the Smartmenus Dir.
    Regards Topshed

    #1602
    admin
    Keymaster

    On this page:

    http://www.britishsteam.com/php_gwr/usr_gwr.php

    if you remove the above code, the links in the sub menus start loading.

    I thought this was the problem, isn’t it? Please try to explain in simple way what is the exact problem you are having on this page.

    Thanks!

    #1620
    Topshed
    Participant

    Thank you for all your patience and assistance it is now working fine
    It’s a great system

    Regards Topshed

    #1621
    admin
    Keymaster

    No problem at all, glad to hear that!

    Cheers!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘0.9.x’ is closed to new topics and replies.