By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,528 Members | 1,375 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,528 IT Pros & Developers. It's quick & easy.

Form Submission

P: 3
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.

Expand|Select|Wrap|Line Numbers
  1. <form name="quickSubmit" id="quickSubmit" method="post" onsubmit="return validate();" action="javascript:get();">
  2.  
  3. <table id="tblCalForm" cellpadding="0" cellspacing="0" border="0" class="calForm" style="width: 170px">
  4. <tr>
  5. <td bgcolor="white"><img src="RadWWrapperHeaderLeft.gif" border="0" alt="..."></td>
  6. <td style="background-image: url('RadWWrapperHeaderCenter.gif');" width="100%">
  7.  
  8. <table cellpadding="0" cellspacing="0" border="0" width="100%">
  9. <tr>
  10. <td width="20px">
  11. <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.

Thanks Justin
Oct 18 '06 #1
Share this Question
Share on Google+
1 Reply


YenRaven
P: 29
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?
are you saying that when validate returns false it still goes to the get function?

if this is so please provide the validate, and get functions.
Oct 18 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.