Tag Archives: AJAX
KC AVIS client
This is a client application to the AVIS car hiring system. You can see it in use at http://www.cars4less.co.za/. This application allows you to provide car hiring services to the visitors of your site with AVIS. It acts as client … Continue reading
Hack the WordPress AJAX procedure…
Here I describe an unusual way to use AJAX inside WordPress, by usual “admin-ajax.php” URL. Usually we run AJAX in WordPress with following code: add_action(‘wp_ajax_mp_my_action’, ‘my_action’); add_action(‘wp_ajax_nopriv_my_action’, ‘my_action’); function my_action() { … } Then we fire it with GET query … Continue reading
Strange behaviour of parseFloat of ‘this.innerHTML’ in Chrome
This is a rare case: in a project I use parseFloat JavaScript function to calculate final sum, but string was in the HTML code, previously generated by jQuery AJAX call: $(‘#’+id).html(rezult+’ ‘+currency); … $(‘#total’).html(‘TOTAL: ‘+totalcalc()); so it must be captured … Continue reading