Synchronous Form Field Validation with AJAX/Atlas?

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,
 
B

Brent.Jansen

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

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,169
Latest member
ArturoOlne
Top