HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rating: Thread Rating: 7 votes, 2.86 average. Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 13th, 1999, 03:50 PM
tucats
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
is there anyway to submit a form by clicking on an option in a drop down select menu... instead of clicking a submit button...?

Reply With Quote
  #2  
Old December 14th, 1999, 09:04 AM
falcon
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I am not sure whether you will be able to submit a form but here is a link to a page which has some code links to another page from a select menu.

Perhaps with a little imagination you could add some code which will submit the form.

Hope it helps..

Falcon.

Reply With Quote
  #3  
Old December 14th, 1999, 09:05 AM
falcon
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Doh!

Sorry forgot the link, here it is..

http://www.webdeveloper.com/library/qanda.html#dropdown

Falcon.

Reply With Quote
  #4  
Old December 15th, 1999, 04:22 AM
PAV
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Yes you can, but only in IE4+ and NS3+ with the following JS-event

<SCRIPT LANGUAGE="JavaScript">
function getURL(form) {
// get the value of the selected option
var url = form.selURL.options[form.selURL.selectedIndex].value;
// go there
location.href = url;
</SCRIPT>
<FORM>
<SELECT NAME=selURL onChange="getURL(this.form);">
<OPTION VALUE="someURL">blah
<OPTION VALUE="otherURL">blahblah
</SELECT>
</FORM>

But to be sure everyone with older browsers can use it add a button (with other javascript you can hide it from showing in newer browsers, though)

Peter

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > links "input type = select"

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap