Announcement

Collapse
No announcement yet.

combo box help/

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

  • combo box help/

    Hi, does anybody know how to create a drop down menu or a combo box that can link to another page when selected/highlighted? need some help.. thanks..


    Sufian.

  • #2
    Here's how you can create a combo**** dropdown menu using BlueVoda:

    1. Create a new form, give it the name GoMenuForm
    2. Clear the action and encopting type fields (so they're empty!)
    3. Add an Advanced Button to the form change the name to Go
    4. Set the properties to these values:
    Value: Go
    Button type: OnClick
    OnClick action: Execute Javascript function
    OnClick value: GoMenuFormLink()
    5. Add a combobox to the form and launch the object properties
    6. Set the name to: GoMenu
    7. Add a new item with Item Text: Select a link and Initial state: Selected
    8. Now it's time to add you links for example:
    Click Add to add a new item:
    Item Text: Microsoft
    Value: http://www.microsoft.com
    And another one:
    Item Text: Vodahost
    Value: http://www.vodahost.com
    9. The final step:
    Right click the form and select Object HTML add this code to the Before Tag box:
    <script language="JavaScript">

    function GoMenuFormLink()

    {

    var a = document.GoMenuForm.GoMenu.options[document.GoMenuForm.GoMenu.selectedIndex].value +"";

    if(a != '')

    {

    if(parent!=self)

    {

    var f = self;

    while(f!=window.top)

    {

    f = f.parent;

    }

    if(a.indexOf("://")!=-1)

    {

    f.body.window.location.href = a;

    }

    else

    {

    window.top.location.href = a;

    }

    }

    else

    {

    window.top.location.href = a;

    }

    document.GoMenuForm.GoMenu.selectedIndex=0;

    }

    }

    </script>

    Forum Moderator
    BlueVoda Spe******t

    Comment


    • #3
      Re: combo box help/

      what does value mean in the combo boxes?

      Comment


      • #4
        Re: combo box help/

        I know this thread is old and I think BlueVoda has added the Go Menu tool.

        I want the initial item to read "Select a Site" with no value.
        Both this code and that generated by the Go menu tool tries to go to the web url: "Select a Site". How do you stop this.

        I thought the code a!='' would stop this but it doesn't

        also where in this code does the target="_blank" go?

        I am sure you experts can tell me an easy solution.

        Regards
        Richard

        Comment


        • #5
          Re: combo box help/

          ok I'm new - It's not that old I was looking at the members joining date.

          In that case why not use the Go Menu Tool?

          Regards
          Richard

          Comment


          • #6
            Re: combo box help/

            It is old. It is reffering to an older BV version, when the Go Menu didn't yet exist. Now you do have it ready, and the first item (Select a link) is inactive
            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


            • #7
              Re: combo box help/

              Thanks I thought it was.
              However I still get get a page not found error as it looks for a web page.
              When I enter an initial value.
              I even moved it to item 1 and no initial value but you just get an empty box.

              I can't give a link because I have changed it to a form as per the sample.
              There is an advantage in this in that you can set the colours easily.

              The form sample is http:www.no925.info/main.html

              Regards
              Richard

              Comment


              • #8
                Re: combo box help/

                So just created an empty go menu and


                File not found
                Firefox can't find the file at /C:/DOCUME~1/Richard/LOCALS~1/Temp/preview/Select a link.

                * Check the file name for capitalization or other typing errors.

                * Check to see if the file was moved, renamed or deleted.

                Regards
                Richard

                Comment


                • #9
                  Re: combo box help/

                  Sorry but i can't follow you. The "Select a link" item is not active in BV's Gomenu. The rest of the links are. Have a look at www.navaldesign.info/Tips/gomenu.html

                  Maybe i'm missreading your posts ?
                  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


                  • #10
                    Re: combo box help/

                    If I click GO with 'Select a link' it goes here http://www.navaldesign.info/Tips/Select%20a%20link

                    So I do not know what you mean when you say it is not active in the go menu.

                    P.S. I found the thread to your advanced forms. Looks great but haven't had chance to go through it more than a glance yet.

                    Regards
                    Richard

                    Comment


                    • #11
                      Re: combo box help/

                      CRACKED IT

                      It does what you say in Internet Explorer

                      BUT

                      In Firefox it does what I say !!!

                      How I do not know because there is no value. if you view source.

                      So how did I get to that page of yours????

                      Regards
                      Richard

                      Comment


                      • #12
                        Re: combo box help/

                        So can the code be alterered to fix the problem in Firefox and stop people linking to a strange and undefined value???

                        Regards
                        Richard

                        Comment


                        • #13
                          Re: combo box help/

                          Hi, I have successfully created the combobox, but whenever I publish it on the internet browser, there is this message appear. Can anyone please teach me how to avoid this message from appearing whenever I load the page? Cheers.

                          *Please click on the attached thumbnails below to see the problem I am having.
                          Attached Files

                          Comment


                          • #14
                            Re: combo box help/

                            You get this only in preview, when published it will be ok.
                            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

                            Working...
                            X