Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-03-2002, 07:32 PM   PM User | #1
waps
New Coder

 
Join Date: Jun 2002
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
waps is an unknown quantity at this point
Activating a CGI script ?

Hi,

Um, I have a form which has a submi button, when that button is pushed, a javascript is run which basically validates the form. What I want to know is how do I ativate the cgi script behind the form after the validation check has been completed.

Any ideas ??

Thanks
waps is offline   Reply With Quote
Old 07-03-2002, 08:39 PM   PM User | #2
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,233
Thanks: 4
Thanked 81 Times in 80 Posts
Spookster will become famous soon enough
there's a few ways. One way would be to change your submit button to a regular button

<input type=button onClick="dovalidation()">

Use the onClick to activate your validation routine. Then inside your validation routine if everything checks out you can use javascript to submit the form like so:

document.formname.submit();
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:34 AM.


Advertisement
Log in to turn off these ads.