Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Form Submission

Reply
Thread Tools

Form Submission

 
 
pricejt pricejt is offline
Junior Member
Join Date: Oct 2006
Posts: 1
 
      10-18-2006
I have an Ajax page that is submitting a form. Everything worked great but then when I added a function to make sure everything was valid in the form i can not get it to work.

<form name="quickSubmit" id="quickSubmit" method="post" onsubmit="return validate();" action="javascript:get();">

<table id="tblCalForm" cellpadding="0" cellspacing="0" border="0" class="calForm" style="width: 170px">
<tr>
<td bgcolor="white"><img src="RadWWrapperHeaderLeft.gif" border="0" alt="..."></td>
<td style="background-image: url('RadWWrapperHeaderCenter.gif');" width="100%">

<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td width="20px">
<input type="image" name="btnUpdate" id="btnUpdate" src="disk16.gif" onclick="submit();" style="border-width:0px;" />


that is a portion of the form. The image is my submit button. the action goes to a get function in javascript which works. And before it submits i want it to go to my validate function.

It goes to the validate function and validates, but it also goes to the get function. I have used this before, with validating before submitting, but not with my form action being a javascript function. Is this possible?

Let me know if you need more information. Any help would be greatly appreciated.
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stopping Repeated Form Submission KV ASP .Net 2 04-28-2004 07:18 PM
duplicate form submission Boban Dragojlovic ASP .Net 2 02-03-2004 03:40 PM
Re: Offline Form Submission Tim Stephenson ASP .Net 0 10-15-2003 10:06 AM
(onetime) Form Submission Leon Shaw ASP .Net 1 08-15-2003 03:15 AM
Form Submission: Final URL that has form options included ?? Jared Javascript 5 07-10-2003 10:33 AM



Advertisments