Looked for it everywhere, and found the answer but lost. anyone knows how to load an external .js file from another js file?
main_lobj1.onreadystatechange = function(){
if (main_lobj1.readyState == 4) {if (main_lobj1.status == 200) {
document.getElementById("middleDiv_m").innerHTML=main_lobj1.responseText;
jQuery.getScript('jquery/tabs.js')
}
}
innerHTML works and responce text is pasted. The problem is that JS is not working in that document. jQuery.getScript should be loading that external js file, but it doesnt
This is the way you can do it to load an external js file to Jquery