Synchronous Form Field Validation with AJAX/Atlas?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello Everyone,

Ive seen alot of people saying that the best way to AJAX Validate a form is
through the submit button, because validation should be synchronous. Im
wondering, is there any good way to validate a form field by field like AJAX
would do, but to keep it synchronous? i.e. one action, one validation.

Thanks,
 
AECL_DEV said:
Hello Everyone,

Ive seen alot of people saying that the best way to AJAX Validate a form is
through the submit button, because validation should be synchronous. Im
wondering, is there any good way to validate a form field by field like AJAX
would do, but to keep it synchronous? i.e. one action, one validation.

Thanks,



Sure.

Use simple javascript to validate your form as it is changed.
Javascript can be triggered through many different events that happen
on the client's machine. This allows for synchronous validation.

However you should still keep validation controls / additional
validation code on the server end to ensure data integrity.
 

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

Back
Top