Current location: Hot Scripts Forums » General Web Coding » JavaScript » process form without press submit button


process form without press submit button

Reply
  #1 (permalink)  
Old 11-01-03, 09:36 PM
azwani azwani is offline
New Member
 
Join Date: Oct 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
process form without press submit button

hi, i want to process form (receive input from user) without we have to press submit button.processs it automatically after user insert their data.can anyone help me plz.....
Reply With Quote
  #2 (permalink)  
Old 11-03-03, 01:10 AM
Perry Perry is offline
Newbie Coder
 
Join Date: Jun 2003
Location: Tennessee
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
you can submit a form with javascript like this:

document.forms[0].submit();

if the data your users are entering is regular, like a 9 digit social security number for example, just attach an onKeyUp event to the text input field and use that to check if your condition is met or not (if you've typed 9 digits or not) If it is, use the javascript above to submit the form.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
image submit button problems Pepe PHP 10 12-22-03 08:15 PM
Why I always get \' and \" after I submit the form ! kevin PHP 4 11-24-03 04:57 AM
question on form and submit TxRanger JavaScript 2 11-03-03 11:28 AM
SQL database registration form help vinhkhuong PHP 3 10-10-03 03:49 AM
Need to submit form to database and text file - Any ideas how? dpreiss ASP 1 08-21-03 06:02 PM


All times are GMT -5. The time now is 11:14 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.