Michael Geary schrieb: >> I would like to be able to load my jquery plugins dynamically >> as this would reduce the number of scripts in my document head. > > You can easily load any .js file dynamically, for example with code like > this: > > function addScript( url ) { > var script = document.createElement( 'script' ); > script.type = 'text/javascript'; > script.charset = 'utf-8'; > script.src = url; > document.getElementsByTagName('head')[0].appendChild( script ); > }; > > That's just basic JavaScript code that doesn't require jQuery or anything.
Just wanted to note, that dynamic script elements are not supported in Safari 2.0. Support for that was added in Safari 2.01. Don't know about document.write... -- Klaus _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/