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
geScriptalready parses the return as script, there is no need to tellgetScriptto parse as script. Plus he is requesting a .js file so I don't get what you are saying.