Hi,

> I'm trying to load JS files (libraries) dynamically at run-time with
> jQuery but I'm not being able to... I thought I had this working
> before but now it's not. Here's my code:

Which Browser are you testing with? Generally there are two possibilities to 
load Scripts dynamically:

1. add a script tag via DOM - loads the script assynchronously. You won't know 
when it has been loaded and some Safari Versions don't execute the script.
2. load the Script with XMLHttpRequest and then eval() it - you can choose 
between synchonous an assynchronous loading. You can provide a callback that 
will get called after the script is loaded. This works with every Browser 
that has a XMLHttpRequest, but will only load scripts from the same Server.

If you whant to have an Example how that could be done, have a look at 
jspax.org.

Christof

Reply via email to