Validanguage Test Case #5 — AJAX Test Page

This page is more of a test case for my own use than a demo page. You need to have a good understanding of how the isAjax validation functions work, as well as the caching mechanism and timeout fallback, to get anything out of this test case. I hope to have simpler examples online soon.



    
    


*An ajax request is fired off when the user has finished typing to see if the username is already taken. For the purposes of this demo, the ajax request actually checks http://services.aonaware.com/DictService/ to see if the entered username is a valid word in the dictionary, and if it is, then the username is considered "taken".

Additionally, the server response for every even-numbered ajax request is delayed by 6 seconds to allow this page to be used to test Validanguage's support for ignoring outdated ajax callbacks.




  Sleep:   Result:





  Sleep:   Result: