I am using the following technique to load up Javascript dynamically:
var script = document.createElement(\"script\"); script.type = \"text/javascript\"; scr
What JavaScript library do you use?
In jQuery if you load the script via Ajax, you have an option to run a success callback function (and other types of callbacks)...
There is also a dedicated function for loading scripts: $.getScript()