I have a little .ajax function that tries to load some content after the document is ready.
$(document).ready(function(){ $.ajax({ url: 'php/accounts-blocks.php', cache: false, beforeSend: function() { $('#accounts-blocks').html('Please wait...'); }, success: function(html) { $('#accounts-blocks').html(html); } }); });
However, when I try to check this page locally (only on my PC), ajax only shows the message βWait,β as forever, and does not load the content. Do I have to install local hosting or something like that in order to test AJAX functionality or something is wrong with the script?
source share