Goodbye page refreshes, goodbye “post page” before being able to check the inputted data. Nowadays the life of a webdesigner is alot easier because we now have AJAX !
In the “old days”, the way to check form input was to send it to the server using a POST/GET method, then verifying the data and send the user to the appropriate page, depending on the validation of the input. This way of form validation works for everything you want todo, but with larger/more detailed forms you will soon realize that it’s very hard to maintain & extend, and then we’re not talking about the end-user annoyance.
On the internet you will see dozens of AJAX frameworks, websites using AJAX. The best example of this all is Google suggest, type in a keyword and instantly get the number of hits google found for your keyword, no need to refresh, no need to click a button…it’s magic isn’t it ?
In the upcoming posts i will give some AJAX frameworks a go, because i need to find a good way to check the form input on a new website i am developing, the first one that i run into that is easy to use, extendable and fits my needs will be my last post on this matter (for now)….