Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Java onLoad event after validation is complete

  1. #1
    Junior Member
    Join Date
    Sep 2010
    Thanked 0 Times in 0 Posts

    Default Java onLoad event after validation is complete

    I have a php contact/file upload form that uses java field validation.

    It uses a simple spinning animation (as a progress indicator) that starts then the submit button is pressed.

    I don't want the animation to start until the field validation is complete.

    Right now when the submit button is pressed the validation prompt appears, but the spinning animation also starts ... I don't want it to start until until the last required field has been completed.

    I have no idea how integrate this into the existing code.

    Here's the link BLEND Printing

    Just press the "submit order" button without entering any info into the fields to see the issue.

    Could someone please view the source code, and let me know what I need to add to make it work?

    I didn't post the entire code here because it might be overkill ... if it's only one line that needs to be changed.


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Thanked 833 Times in 772 Posts
    Blog Entries

    Default Re: Java onLoad event after validation is complete

    Your question pertains to javascript. This is a java forum (big difference). That being said, by briefly looking at it, seems you could try and swap the functions for your form and button - validation on the onclick for the button returning true or false based upon validate. If true is returned the form will submit and animation start.

Similar Threads

  1. [SOLVED] I dont know how to complete this code?
    By jwb4291 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: November 8th, 2017, 11:11 PM
  2. Unable to render printing the complete JPanel
    By Stephen Douglas in forum What's Wrong With My Code?
    Replies: 0
    Last Post: March 13th, 2010, 11:48 AM
  3. Exception during xml validation
    By vijeta in forum What's Wrong With My Code?
    Replies: 0
    Last Post: March 6th, 2010, 02:50 AM
  4. Problems with If validation
    By websey in forum Loops & Control Statements
    Replies: 1
    Last Post: November 18th, 2009, 09:43 AM
  5. How to delete and add elements to an array dynamically?
    By k_w_r2007 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: April 21st, 2009, 11:31 AM