Christof,
I'm afraid that I simply don't take Safari users into account. Hardly a
great thing, but I focus on three browsers: Firefox and IE7, and then IE6.
In that order. The work I do is targetted at corporate users who run Windows
2000 and Firefox, and all the JS work I do is for those users. About three
people in our company have a Mac, and all of them use FF, so Safari simply
doesn't come into my considerations when coding.
Thanks though. It's always good to know a browsers limitations. :-)
Cheers,
Dan
Christof Donat wrote:
>
> Hi,
>
>> function addScript( url ) {
>> var script = document.createElement( 'script' );
>> script.type = 'text/javascript';
>> script.charset = 'utf-8';
>> script.src = url;
>> document.getElementsByTagName('head')[0].appendChild( script );
>> };
>
> There are safari-versions which don't eval scripts like that. That is the
> reason, why jspax uses XMLHttpRequest and eval() if possible and inserts a
> script tag if XMLHttpRequest is not available (that deffinatelly is not
> that
> Safari version then).
>
>> addScript('jquery.js');
>
> And then you guess the time when jquery is loaded. You can not expect that
> jQuery is available when addScript returns. With jsPax you use
>
> $using('jquery',function() {
> alert('jQuery is now available');
> });
>
>> I would recommend doing a search on the Nabble mailing list page for
>> this,
>> as it has been covered many times before.
>
> Yes, and we had the problem with Safari in almost every thread about this
> issue. We also had the problem of knowing the moment, the script has been
> loaded almost in every one of those threads.
>
> Sorry Dan, but I thought you really should have come across those issues.
>
> Christof
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>
--
View this message in context:
http://www.nabble.com/dynamic-loading-of-jquery.js-into-my-web-page-tf2905089.html#a8156061
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/