Passing variable as key in jQuery ajax
I wanted to pass a simple key/value string to an Ajax request, but you cannot simply use the variable as the key in the data: var $fieldname = 'company_name'; var…
A bunch of ramblings about PHP programming, JQuery, MySQL and other 'stuff'
I wanted to pass a simple key/value string to an Ajax request, but you cannot simply use the variable as the key in the data: var $fieldname = 'company_name'; var…
So you want a little funky AJAX loader? Add this to your JS main core file…: $(document).ready(function() { //initiate an ajax start message $(document).ajaxStart(function() { //show the message $('#ajax_loading_indicator').show(); });…
If you use the above to show a nice loading message when an AJAX call is performed, you may have come across the problem that a JSONP request means the…
If you use the above to show a nice loading message when an AJAX call is performed, you may have come across the problem that a JSONP request means the…