Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

How do I use a list item to put info into a url?

New Here ,
Apr 09, 2010 Apr 09, 2010

Copy link to clipboard

Copied

Website is here:

http://www.pitlanepass.com

It's still to be populated with true data but if I select an organisation i.e. norasport then it takes me to the orgdetail page and lists all riders registered with norasport. I have a unordered list that separates these down into individual categories and that works well but due to the long category names it looks messy so would like to replace this with a menu/list setup that tidies it up. Intitial trials are not good. I'm using DW8 and have limited php knowledge (i'm working on it!!) How do i change from the ul to a form/list  and is it possible to do away with a submit button easily?

Thanks!!!

TOPICS
Server side applications

Views

427
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , Apr 09, 2010 Apr 09, 2010

Yes! If I understand your request correctly, this is actually very easy.

What you want to do is add a form with a JUMP MENU to that part of the page. In the JUMP MENU, you add your options, and a URL to send each option to... there is an option to go immediately on selection, skipping the need for a submit/go button.

Give that a shot - it seems like what you need.

Votes

Translate
Participant ,
Apr 09, 2010 Apr 09, 2010

Copy link to clipboard

Copied

Yes! If I understand your request correctly, this is actually very easy.

What you want to do is add a form with a JUMP MENU to that part of the page. In the JUMP MENU, you add your options, and a URL to send each option to... there is an option to go immediately on selection, skipping the need for a submit/go button.

Give that a shot - it seems like what you need.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 09, 2010 Apr 09, 2010

Copy link to clipboard

Copied

I think this is what you're talking about... give this a shot. You can style the menu with CSS if you want. 

This code will make a drop down like this: (http://www.melsbgc.com/test.htm)

<FORM NAME="form" ID="form">

  <SELECT NAME="jumpMenu" ID="jumpMenu" onChange="MM_jumpMenu('parent',this,0)">

    <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=Junior%20National">Junior National</OPTION>

    <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=250%20National">250 National</OPTION>

    <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=450%20Elite">450 Elite</OPTION>

    <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=450%20Clubman">450 Clubman</OPTION>

    <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=Open%20Elite">Open Elite</OPTION>

    <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=Open%20Nationals">Open Nationals</OPTION>

    <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=Open%20Clubman%20Cup">Open Clubman Cup</OPTION>

    <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=450%20Quad">450 Quad</OPTION>

    <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=Open%20Quad">Open Quad</OPTION>

    <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=650%20Superlite">650 Superlite</OPTION>

    <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=Open%20Superlite">Open Superlite</OPTION>

  </SELECT>

</FORM>

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 11, 2010 Apr 11, 2010

Copy link to clipboard

Copied

LATEST

Thanks Michael, all sorted now! I followed your advice from your first reply and tried a jump menu. I'd previously tried it but had trouble populating it dynamically but created a static jump menu and made it dynamic a different way. It now works exactly as I wanted it to.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines