Hi,

> By "remote", I meant different domain, so XHR doesn't work.

Ah, I see.

> I'm working in 
> a very controlled environment, and don't need the callback (actually, the
> remote script calls the callback).

How controlled is the environment? Many browsers can be configured that 
scripts from a specific domain may load data from another domain via 
XMLHttpRequest. Please don't ask me for details now, but I had that problem 
once in an environment with only IE 6.

> if($.browser.msie) {
>     script = document.createElement('script');
>     script.type = 'text/javascript';
>     script.src = url;
>     document.getElementsByTagName("body")[0].appendChild(script);
> } else {
>     $('body').append('<script type="text/javascript" src="' + url +
> '"></script>');
> }

Is there a good reason, why you distinguish between IE and real browsers here? 
I'd think, that both variants should work in both cases.

> I just assumed $.getScript() would deal with it. Functionally, is there a
> difference between adding the script to body vs head? Thanks for all the
> info.

Well, if you add it to the body it might be in your way when working on the 
content via DOM or jQuery. I like to have stuff like that in the head. 
Functionally there should be no difference.

Christof

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to