Form Submission


Joined
Oct 18, 2006
Messages
1
Reaction score
0
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.
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top