[jQuery] Re: Using taconite to append javascript and stylesheets

2008-10-31 Thread Bob Schellink
Hi Ricardo, ricardobeat wrote: This works though: $('head')[0].appendChild($('')[0])


Thanks, that is pretty slick. Much better than the approach I took of tracking scripts by appending place holder tags in head.

[jQuery] Re: Using taconite to append javascript and stylesheets

That's odd, I thought It should work. getScript() doesn't add a visible script tag to the DOM either, but it would be easy to track script urls with an object. This works though: $('head')[0].appendChild($('

[jQuery] Re: Using taconite to append javascript and stylesheets

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

[jQuery] Re: Using taconite to append javascript and stylesheets

Hi Ricardo, ricardobeat wrote: You don't need a plug-in to do that: $('head') .append('') .append('') Using the above method (or taconite) I've noticed that JQuery does not actually append the

[jQuery] Re: Using taconite to append javascript and stylesheets

> Is this scenario supported by Taconite or should I rather the > tag for appending stylesheets? Use the eval tag.

[jQuery] Re: Using taconite to append javascript and stylesheets

You don't need a plug-in to do that: $('head') .append('') .append('') On Oct 28, 2:29 pm, Bob Schellink <[EMAIL PROTECTED]> wrote: > Hi all, > > I am using the Taconite (http://malsup.com/jquery/taconite/) plugin to > dynamically append external scripts (