By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,952 Members | 1,840 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,952 IT Pros & Developers. It's quick & easy.

Synchronous Form Field Validation with AJAX/Atlas?

P: n/a
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,
Aug 8 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a

AECL_DEV wrote:
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.

Aug 8 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.