Hi,
> What about $.getScript("myplugin.js", callback)? With all the code you
> want to run in the callback function.
For that you need jQuery and the Ajax-Plugin to be already loaded. In jsPax I
don't use jQuery anywhere. I didn't whant it to be dependant on anything,
because then I can make a package from every script, even from the
jQuery-core. With your jQuery extention you will write:
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery/ajax.js"></script>
<script type="text/javascript" src="jquery/dynamicloader.js"></script>
<script type="text/javascript" src="main.js"></script>
With jsPax you write:
<script type="text/javascript" src="jspax.js"></script>
<script type="text/javascript" src="main.js"></script>
And load jQuery and whatever plugins you need in main.js. The decission what
you need might be depending on the content of your page.
Christof
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/