Results 1 to 7 of 7

Thread: goMenu open in iframe
      
   

  1. #1
    amaesato is offline Private
    Join Date
    Jul 2010
    Posts
    3

    Default goMenu open in iframe

    I found help for my problem from an old thread in this forum:

    "Open your page.
    Move your Go menu, at the very top left corner of the page.

    Right click on it and go to Object html. Copy the code that will look like:


    <FORM name="GoMenuForm2" action="">

    <SELECT name="GoMenu" style="width:119px">
    <OPTION selected>Select a link</OPTION>
    <OPTION value="http://www.yoursite.com/page_in_the_frame1.html>option1</OPTION>
    <OPTION value=http://www.yoursite.com/page_in_the_frame2.html>option2</OPTION>
    </SELECT>
    <INPUT type="button" value="Go" onclick="OnGoMenuForm2Link()">
    </FORM>
    <SCRIPT language="JavaScript" type="text/javascript">
    function OnGoMenuForm2Link()
    {
    var url = document.GoMenuForm2.GoMenu.options[document.GoMenuForm2.GoMenu.selectedIndex].value +"";
    if (url != '')
    {
    if(parent != self)
    {
    var doc = self;
    while(doc != window.top)
    {
    doc = doc.parent;
    }
    if(url.indexOf("://")!=-1)
    {
    doc.body.window.location.href = url;
    }
    else
    {
    window.framename.location.href = url;
    }
    }
    else
    {
    window.framename.location.href = url;
    }
    document.GoMenuForm2.GoMenu.selectedIndex=0;
    }
    }
    </SCRIPT> "


    This all worked except I don't want a "go" button (<INPUT type="button" value="Go" onclick="OnGoMenuForm2Link()">), I just want it to change (in the inline frame) when selected. I've tried putting the type as hidden and the onclick to onselect, but that's about as far as my knowledge goes. I'm a newbie at this. Can anyone help me?

  2. #2
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: goMenu open in iframe

    What exactly you are trying to do ? It is unclear to me.

    What's your URL ?
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  3. #3
    amaesato is offline Private
    Join Date
    Jul 2010
    Posts
    3

    Default Re: goMenu open in iframe

    URL http://ffcin.org/testpages/donate.html

    Here is what I have in the html box. The red text is just me experimenting, It previously was GoMenuForm33.

    <div style="position:absolute;">
    <form name="
    Html1" action="">
    <select name="GoMenu" class="list" style="position:absolute;left:0px;top:0px;width:21 8px;height:23px;">
    <option selected>select a name to DONATE</option>
    <option class="InlineFrame1" value="./volunteersupport.html">General volunteer</option>
    <option class="InlineFrame1" value="http://www.ffcin.org/volunteersupport.html">General volunteer</option>
    <option class="InlineFrame1" value="http://www.ffcin.org/constructioncrew.html">Construction Crew</option>
    <option class="InlineFrame1" value="http://www.ffcin.org/lanichriscaldwell.html">Lani & Chris Caldwell</option>
    <option class="InlineFrame1" value="http://www.ffcin.org/russellwright.html">Russell Wright</option>

    </select>
    <input type="hidden" value="Go" class="list" onselect="OnInlineFrame1Link(this.form.GoMenu)">
    </form>
    </div>
    <SCRIPT language="JavaScript" type="text/javascript">
    function On
    Html1Link()
    {
    var url = document.
    Html1.GoMenu.options[document.Html1.GoMenu.selectedIndex].value +"";
    if (url != '')
    {
    if(parent != self)
    {
    var doc = self;
    while(doc != window.top)
    {
    doc = doc.parent;
    }
    if(url.indexOf("://")!=-1)
    {
    doc.body.window.location.href = url;
    }
    else
    {
    window.InlineFrame1.location.href = url;
    }
    }
    else
    {
    window.InlineFrame1.location.href = url;
    }
    document.
    Html1.GoMenu.selectedIndex=0;
    }
    }
    </SCRIPT>


    I have wysiwyg web builder but I couldn't find what I needed in their forum. I am constantly adding new names to the list and it seems this will be easier than the goMenu. Hope this makes sense

  4. #4
    DarrenC's Avatar
    DarrenC is offline Brigadier General
    Join Date
    Jul 2008
    Location
    Bristol UK
    Posts
    1,756

    Default Re: goMenu open in iframe

    Do you simply want the 'go menu' naviagtion links to open the respective pages in a IFrame?

    If so for each link, in the 'Target' Field, manually type in 'InlineFrame1' (or whatever the IFrame is called)
    Happy Building

    DarrenC

  5. #5
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: goMenu open in iframe

    The original post about Gomenu openin in Iframe is outdated, as, at that time, BV could not open the links in an Iframe. Now it can. Use Darren's instructions.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  6. #6
    amaesato is offline Private
    Join Date
    Jul 2010
    Posts
    3

    Default Re: goMenu open in iframe

    Are you talking about the goMenu that has the html generated for you, and you put your info in the fields?

    I started off with a goMenu but I had to press "add" and input the url and target individually for each name (I have a lot of names). It just seems easier to be able to copy/paste and change names in html. I don't know if this makes sense. If it doesn't I guess I will just have to use the goMenu

  7. #7
    lucas123 Guest

    Default Re: goMenu open in iframe

    decapatated hand, but ... yeah, i think its too much to post up here lol.

    _______________________________________
    Northern Exposure seasons 1-6 dvd boxset
    Northern Exposure 1-6

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49