Form Submission

Discussion in 'HTML and CSS' started by pricejt, Oct 18, 2006.

  1. pricejt

    pricejt

    Joined:
    Oct 18, 2006
    Messages:
    1
    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, Oct 18, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Leon Shaw

    (onetime) Form Submission

    Leon Shaw, Aug 15, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    347
  2. Tim Stephenson

    Re: Offline Form Submission

    Tim Stephenson, Oct 15, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    381
    Tim Stephenson
    Oct 15, 2003
  3. Boban Dragojlovic

    duplicate form submission

    Boban Dragojlovic, Feb 2, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    550
    Boban Dragojlovic
    Feb 3, 2004
  4. KV
    Replies:
    2
    Views:
    849
  5. Jared
    Replies:
    5
    Views:
    196
    Jared
    Jul 10, 2003
Loading...

Share This Page