Wow, I have recently faced the exact same problem. I am using the head to keep track of all the javascript libraries that have been loaded via ajax -- samething for style sheets. Then, whenever I load a new ajax page I read all the scripts/css files it needs to load and manually load the css files on the master html head section.
I need to do the same thing with the js scripts files since thats how I tell if a library has already been loaded or not. I guess the alternative is to have a hidden table that contains a list of all the urls of the libraries that have been loaded. If that table is empty, then I should first be populated by the master html head and then whatever ajax that gets loaded. Not much of an answer... but oh well ;) Omid S. On Oct 29, 4:11 pm, Bob Schellink <[EMAIL PROTECTED]> wrote: > Hi Ricardo, > > ricardobeat wrote: > > You don't need a plug-in to do that: > > > $('head') > > .append('<link href="css/geral.css" rel="stylesheet" />') > > .append('<script type="text/javascript" src="calendar.js"></ > > script>') > > Usingthe above method (ortaconite) I've noticed that JQuery does not > actuallyappendthe <script> element to head. At least according to > Firebug. Is this the expected behavior? > > One of the things I want to achieve is that scripts should only be > appended once for a page. However if JQuery does not add the script to > head there is nothing to check against in a future call which might > add the same script again. > > Should I bypass JQuery and manually add the script tags to head? > > kind regards > > bob