In my code, I have:
$(document).ready(function() {
$.ajaxSetup ({
// Disable caching of AJAX responses */
cache: false
});
//pop_i = setInterval( "load_result()", 1000 );
load_result();
load_f();
});
but it doesn’t always load. I know this because load_f() has an alert which doesn’t get triggered sometimes.
If you are sure your JavaScript looks right and you’re not getting any errors in Firebug, chances are it’s the JSON being sent back from the server that’s tripping things up.
Where
load_ffails to run copy-paste the result of your GET/POST requests from Firebug into your text-editor and pour through them with a fine-tooth comb to make sure the JSON is well-formed.