alanhope


Home, Music, Photography, Hifi, Web Design, Coding, Simulator, Chess, Synthesizers, Anaesthesia
Coding, Reference, XOR, ASAi, Test

Coding

AJAX

jQuery-free AJAX. Needs further testing on mobile browsers etc, but as far as I can see it is a useful and fast cross-browser AJAX routine. The doAjax() function is defined in settings.php, and included in the universal html5 template. This file includes doSomethingWithResponse(message). Routine uses GET so do not use for state-changing code.

Click here
and watch this message change...

Reset (includes confirmation from server)