+ Reply to Thread
Results 1 to 14 of 14

Thread: combo box help/
      
   

  1. #1
    sufian is offline Sergeant
    Join Date
    Jul 2005
    Location
    Singapore
    Posts
    34

    Default 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. #2
    Pablo is offline Moderator
    Join Date
    May 2005
    Posts
    507

    Default

    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 Specialist

  3. #3
    The Admin is offline Sergeant First Class
    Join Date
    Jan 2006
    Posts
    52

    Default Re: combo box help/

    what does value mean in the combo boxes?

  4. #4
    no925 is offline Sergeant
    Join Date
    Sep 2006
    Location
    Colchester, Essex
    Posts
    25

    Default 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

  5. #5
    no925 is offline Sergeant
    Join Date
    Sep 2006
    Location
    Colchester, Essex
    Posts
    25

    Default 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

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

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


  7. #7
    no925 is offline Sergeant
    Join Date
    Sep 2006
    Location
    Colchester, Essex
    Posts
    25

    Default 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

  8. #8
    no925 is offline Sergeant
    Join Date
    Sep 2006
    Location
    Colchester, Essex
    Posts
    25

    Default 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

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

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


  10. #10
    no925 is offline Sergeant
    Join Date
    Sep 2006
    Location
    Colchester, Essex
    Posts
    25

    Default 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

  11. #11
    no925 is offline Sergeant
    Join Date
    Sep 2006
    Location
    Colchester, Essex
    Posts
    25

    Default 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

  12. #12
    no925 is offline Sergeant
    Join Date
    Sep 2006
    Location
    Colchester, Essex
    Posts
    25

    Default 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

  13. #13
    clarence.cmtan is offline Corporal
    Join Date
    Mar 2006
    Posts
    10

    Default 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 Thumbnails Attached Thumbnails combo box help/-untitled-1.gif  

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

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


Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. linking combo box
    By earthworks in forum General Support Issues
    Replies: 0
    Last Post: 09-18-2005, 12:18 PM
  2. Looking for MB + CPU combo.
    By bcw757 in forum The Voda Lounge (Chit Chat)
    Replies: 0
    Last Post: 07-01-2005, 01:40 AM

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