Response title
This is preview!




var getScript = function(src, callback) {
$.ajax({
dataType:'script',
async:false,
cache:true,
url:src,
success:function(response) {
if (callback && typeof callback == 'function') callback();
}
});
};
getScript('./other.js', function() { ok(); });
My example means that you have to have 2 files for each page. HTML and JS.but I dont' wanna load script for another pages, I want to load its own script (each page)
© 2012 jQuery Foundation
Sponsored by
and others.
