Announcement

Collapse
No announcement yet.

goMenu open in iframe

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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!

    Comment


    • #3
      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

      Comment


      • #4
        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

        Comment


        • #5
          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!

          Comment


          • #6
            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

            Comment


            • #7
              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

              Comment

              Working...
              X