On Mar 15, 12:46 am, Randy Webb <HikksNotAtH...@aol.comwrote:
Quote:
lucy...@gmail.com said the following on 3/14/2007 4:22 PM:
>
>
Quote:
I am trying to use XMLHttpRequest to do server side validation.
>
You want to submit the form to the server, wait on the response, and
then use client side scripting to notify the user? Hell, just submit the
form.......
>
know what you mean!!
if one gets the server side extraction right, the same routines that
will take an ajax call will take a submission (if javascript is off)
which is the nice reason why this can all be unobtrusively written.
If you get it right it's almost web forms 2 in feel, but with really
effective enforcement.
I can see a benefit to this kind of interaction if you are writing a
mash-up, for instance I'm writing a system that allows user input to
be modified by searching over multiple databases and api's, feeds and
the like, based on the user input so far, it then applies some regular
expressions on a large text are which should contain "facts" the user
has copied and pasted or typed in, the whole thing kinda feeds off
itself in rather a nice way and ends up by prefilling some of the more
boring text boxes with appropriate best guess data.
I mean it aint google maps, but as well as validating the input it
does try to be more than ust a "place where stuff gets entered by the
user" - AJAX to the rescue - ahem.