Quick Jump ↵
Add the code below inside your <body> tag and then update it…
<body>
<script type="text/javascript"> $m.wand.ajax_polling = { callback : "JS_FUNCTION" // optional -- JavaScript callback; defaults to "simple_content_update" ,element_id : "auto_poller" // REQUIRED -- a unique identifier ,ga_track : false // optional -- "true" or "false"; defaults to "true" ,interval : 7 // REQUIRED -- in seconds ,method : "get" // optional -- "get" or "post"; defaults to "get" ,password : "" // optional ,query : "NAME=VAR" // optional -- "extra=awesome&foo=bar" ,timeout : // optional -- in seconds ,update_id : "ELEMENT_UPDATE_ID" // REQUIRED -- an HTML element that will receive the data from the server ,update_id_action : "overwrite" // optional -- "overwrite", "append", or "prepend"; defaults to "overwrite" ,url : "/PATH/TO/SERVER/SCRIPT/" // REQUIRED ,username : "" // optional } </script>
AJAX Polling will fire every 7 seconds — wait for it, wait for it…
Use this wisely — it's a good way to annoy your visitors and hammer your server.
You may safely remove the // optional properties from the example.
// optional
« Back to the main documentation