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($('<script type="text/
javascript" src="what.js">')[0])

On Oct 29, 9: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>')
>
> Using the above method (or taconite) I've noticed that JQuery does not
> actually append the <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

Reply via email to