On my site I have a jquery function which retrieves data from another (secured) server as soon as the page is loaded. Using a jsonp call I currently load this data after doc
hi I think You should first check that is jquery and the method you are going to use is defined or not
if(typeof(jQuery)!='undefined' && typeof($.ajax)!='undefined' ){ // your code will come here }