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.

Topshed

Forum Replies Created

Viewing 26 post (of 26 total)
  • Author
    Posts
  • in reply to: Sending Menu selection to an Iframe #1507
    Topshed
    Participant

    Thank you for that but It still loads in iframe1

    My iframe script is

    
     <iframe src="/smartmenus/sm_clean.htm" width="1280" height="85"  name="iframe1" id="iframe1"></iframe>
     <iframe name="iframe2" id="iframe2" width="1280" height="720"></iframe>

    Your code above inserted into iframe1 sm-clean.htm

    
    <!-- "sm-clean" menu theme (optional, you can use your own CSS, too) -->
    <link href="/smartmenus/css/sm-clean/sm-clean.css" rel="stylesheet" type="text/css" />
    $(function() {
    	$('#main-menu').bind('select.smapi', function(e, item) {
    		var iframe2 = parent.document.getElementById('iframe2');
    		if (iframe2) {
    			iframe2.src = item.href;
    		}
    		return false;
    	});
    });
    <!-- #main-menu config - instance specific stuff not covered in the theme -->

    I am lost in here so please explain ?

    Regards Topshed

Viewing 26 post (of 26 total)