When loading a script file dynamically using the following common DOM technique, the onload() event handler is never called. var element = document.createElement("script"); element.src = "/path/to/my/file.js"; element.type = 'text/javascript'; element.language = 'javascript'; element.onload = function() { window.alert(this.src + " loaded"); }; document.getElementsByTagName("head")[0].appendChild(element);
I am evaluating Safari for a port of TIBCO(R) General Interface, a mature AJAX platform that is currently IE only. Fixing this bug would make the port more feasible.
I see that this bug is fixed in the most recent nightly build.
*** This bug has been marked as a duplicate of 5812 ***
*** Bug 8204 has been marked as a duplicate of this bug. ***