Hi,

I tried to create a drop down list url jump box by following this simple javascript instruction:

http://www.davesite.com/webstation/js/theory1jump.shtml

<form name="jump1">
<select name="myjumpbox"
 OnChange="location.href=jump1.myjumpbox.options[selectedIndex].value">
     <option selected>Please Select...
     <option value="http://www.davesite.com/">davesite.com
     <option value="http://www.neonlollipops.com/">neonlollipops.com
     <option value="http://www.about.com/">about.com
</select>
</form>

When I saved this to a page, the box appears, but nothing will happen when I select an item.

It seems like javascript isn't enabled in Drupal?

Thanks.

Comments

nevets’s picture

You might want to check out the Jump module.

valel46’s picture

hehe nevets, it seems like you're the only person reading my threads. :p

Thanks, I will try the Jump module, although I'm not sure if I like having to press the "Go" button every time though.

capaneus’s picture

Had the same issue just now, the solution was one of those "Doh!" moments. You gotta make sure you enable the php input filter in optional core modules or the javascript will get stripped out.