Home

Music

Photography

HiFi

Web Design

Coding and AI

Simulator

Chess & Scrabble

Synthesizers

Anaesthesia

Family

alanhope

Coding Brain.js Neural Nets Brain.js XOR + AJAX Dental Assessment AI Web Workers ThreeJS PixiJS

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)