or, you could try this...

$.getScript( url, callback )

Loads, and executes, a remote JavaScript file using an HTTP GET request.

Warning: Safari <= 2.0.x is unable to evaluate scripts in a global context synchronously. If you load functions via getScript, make sure to call them after a delay.

cf. http://docs.jquery.com/Ajax#.24.getScript.28_url.2C_callback_.29

--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Jun 6, 2007, at 5:17 PM, Christof Donat wrote:


Hi,

Is there a way for jQuery to dynamically load an external js file?

You might like to have a look at jspax.org.

Christof

Reply via email to