Using the following ajax, I am adding javascript code to the current page. On success it calls the sidenote() function from that javascript code.
This works in all modern browsers. However, in IE8 and FF22.0 (as I've noticed so far) it successfully imports the javascript, but does not call the function. Is there a work around for this or am I stuck on this one?
$.ajax({
url:mpath+"scripts/stage.min.js",
dataType:"script",
success:function(){sidenote(1)}
})