you make the button to 'button' type rather 'submit'
call the validate function on 'onclick' event rather 'onsubmit'
use javascript submit() function after your response it ok to proceed the form submission.
Hope this solves your problem
-Sreeni.A
On 10/27/06, christopher andrada <chrisandrada@...
> wrote:
hi all,
i need help on my code. when i submit the form
onsubmit... i call ajax to fetch if the inputs are
valid... but before ajax makes a round trip... the
onsubmit function already returned true and went ahead
and submitted the page for porcessing. i how do i
make the javascript onsubmit wait for the response of
the ajax call then proceed with other task within the
onsubmit call.
thanks in advance.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com