good chemistry is complicated,
and a little bit messy -LW
AJAX'ifying a web form and dynamic server validation through Perlby hacker (Priest)
|on Sep 20, 2007 at 04:09 UTC||Need Help??|
hacker has asked for the wisdom of the Perl Monks concerning the following question:
I've been working on a web form that allows a user to fill in some parameters like url, link depth, images parameters and such.
When they submit the form, I currently do the following:
What I'd like to try to do, is make the form more usable for users, without the need to issue a Submit to return much of the basic results.
For example, the user enters a URL into a textfield, and as they tab to the next form element, I'm fetching the URL they've entered and returning the count of links found, as they continue to fill out the rest of the form and before they submit the form.
Have any monks implemented AJAX form validation and XMLHttpRequest style objects and server calls with all of the form and backend processing handled via Perl itself?
I'm looking for gotchas, pointers, samples and other things I can use to learn how to do this.
Barring that, is there another approach to making the form more usable for everybody's grandmother, without using AJAX or client-side validation tricks?