This really sounds like you need to reevaluate your design. Either you need to drop ajax, or you need to not have collisions in you method names.
you can just namespace your code.. that way you prevent collisions
Actually that's quite possible. You can replace an script or link element.
you must fill filename parameters as src attribute and filetype as "js" or "css"
I think there's no need to explain the code. Also you've posted in 2009 but hey. Maybe someone will need it right? :)
You can learn some tricks there btw.
mainJs = document.getElementById("mainJs"); document.head.removeChild(mainJS);//Remooves main.js from the DOM tree flushFile = document.createElement("script"); flushFile.setAttribute("src", "flush.js"); document.head.appendChild(flushFile);//Loads flush.js into the DOM tree, overwriting all functions and variables of main.js in browser memory to null
©2020 All rights reserved.