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



Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 27th, 2003, 06:03 AM
bigred bigred is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 1 bigred User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Form submit onChange

Can anyone help me?

I am (obviously) new at this and I am trying to make a form with X choices redirect to a certain page. I do not want a submit btn, I would like it to redirect onChange.

This is what I have so far. Any ideas?

<form name="form1" method="post">
<select name="select" class="tabletxt">
<option selected>Select info here option>
<option onChange="Form.submit()">Program</option>
<option onChange="Form.submit()">Registering</option>
</select>
</form>


Best regards
bigred from Norway

Reply With Quote
  #2  
Old December 28th, 2003, 12:16 PM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,886 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 19 m 35 sec
Reputation Power: 14
Try something like this:

Code:
<form name="form1" method="post">
<select name="select" class="tabletxt"  onChange="document.form1.submit()">
<option selected>Select info here </option>
<option>Program</option>
<option>Registering</option>
</select>
</form>


alternatively, i think you can do this.submit()
also noticed you missed an </option> tag for the first option

Reply With Quote
  #3  
Old July 19th, 2008, 02:03 AM
riyas riyas is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2008
Posts: 1 riyas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 35 sec
Reputation Power: 0
Try using this

Quote:
Originally Posted by bigred
Can anyone help me?

I am (obviously) new at this and I am trying to make a form with X choices redirect to a certain page. I do not want a submit btn, I would like it to redirect onChange.

This is what I have so far. Any ideas?

<form name="form1" method="post">
<select name="select" class="tabletxt">
<option selected>Select info here option>
<option onChange="Form.submit()">Program</option>
<option onChange="Form.submit()">Registering</option>
</select>
</form>


Best regards
bigred from Norway


Try using this
onchange="this.form.submit();"

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Form submit onChange


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 - 2014, Jelsoft Enterprises Ltd.

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