Connecting Tech Pros Worldwide Forums | Help | Site Map

Synchronous form field validation with Atlas/AJAX against a databa

AECL_DEV
Guest
 
Posts: n/a
#1: Aug 9 '06
Okay, so javascript validation is all well and good, but how would I use that
to stay synchronous if I am validating against a server side database? Can I
use some sort of modal dialog/loadingscreen? if so, how would I go about
doing that?

bruce barker \(sqlwork.com\)
Guest
 
Posts: n/a
#2: Aug 9 '06

re: Synchronous form field validation with Atlas/AJAX against a databa


ajax is async. if you want to validate a postback with an ajax library, then
have the ajax completion routine do the postback, not the button click.

-- bruce (sqlwork.com)


"AECL_DEV" <AECLDEV@discussions.microsoft.comwrote in message
news:A5039619-D628-4A48-81B5-AF256F77F4CD@microsoft.com...
Quote:
Okay, so javascript validation is all well and good, but how would I use
that
to stay synchronous if I am validating against a server side database?
Can I
use some sort of modal dialog/loadingscreen? if so, how would I go about
doing that?

Laurent Bugnion
Guest
 
Posts: n/a
#3: Aug 11 '06

re: Synchronous form field validation with Atlas/AJAX against a databa


Hi,

bruce barker (sqlwork.com) wrote:
Quote:
ajax is async. if you want to validate a postback with an ajax library, then
have the ajax completion routine do the postback, not the button click.
>
-- bruce (sqlwork.com)
It is possible to send synchronous requests using XmlHttpRequest
objects. However, I would really recommend against that, as the whole
JavaScript engine is blocked waiting for the response.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Closed Thread