The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Category dropdown list - no go! button? (6 posts)

  1. RobotDan
    Posted 12 years ago #

    Can anyone help me adapt my templates to rid the need for the 'go!' button next to the 'Categories' dropdown list on my site - so it jumps to the page automatically after selecting? I found some code on these forums which let me do this with the 'Archives' dropdown.
    The site is here:
    Cheers : )

  2. Anonymous
    Posted 12 years ago #

    5 minutes at google turned up this. I remember doing something similar on a website I had ages ago.

  3. RobotDan
    Posted 12 years ago #

    Thanks for looking into it for me, but I think that solution uses FrontPage forms... I've tried it out with no success.
    Can this be done by change the form code below, or would it need other code?
    <?php dropdown_cats(1, 'CATEGORIES', 'name', 'asc', 0, 0, 0); ?>

  4. Mary Linville
    Posted 12 years ago #

    Just tinker the JS from that Archives form.
    <form name="catform" onchange="window.location = (document.forms.catform.cat[document.forms.catform.cat.selectedIndex].value);">

  5. Mary Linville
    Posted 12 years ago #

    Whoops, missed that. But glad you got it working. :)

  6. dylan
    Posted 10 years ago #

    I tried sunshine's suggestion there, and it almost works, however the addresses led to by the form, they aren't correct. suggestions anyone?

Topic Closed

This topic has been closed to new replies.

About this Topic