Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - Form Submission

 
Thread Tools Search this Thread
Old 10-18-2006, 04:49 PM   #1
Default Form Submission


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.


pricejt
pricejt is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Forum Jump