>> You can create a script element using document.createElement, set a 
>> handler for readyState, and then set a src to get it to load. It 
>> should work for any external script. jQuery uses it in the .ready() 
>> event setup if you need an example.
>
> Uh, really interesting. Do you know if this will work crossbrowser?
> jQuery uses it only for IE.

I don't know, I've never used it in production code. Google found this:

http://www.phpied.com/javascript-include-ready/

It looks like a cross-browser solution can be worked out.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to