You're right. A quick look in the bug tracker turns up this ticket:
http://dev.jquery.com/ticket/1768
Karl Rudd
Tks Karl,
So, there are two questions I made to myself and I am unable to answer:
1-) Does $.getScript() is a
Here's my thoughts:
1) It is reliable when dealing with scripts that exist.
2) No idea.
Karl Rudd
On Thu, Mar 26, 2009 at 9:12 PM, Mauricio (Maujor) Samy Silva
css.mau...@gmail.com wrote:
You're right. A quick look in the bug tracker turns up this ticket:
http://dev.jquery.com/ticket/1768
1-) For remote calls, even script exists, in case server is down the issue
arises.
2-) It will be great some advise from a member of jQuery team.
Maurício.
-
De: Karl Rudd karl.r...@gmail.com
Here's my thoughts:
1) It is
If the script does not exist then the insertion of the script
element will fail (which is how cross domain getScript() works). So
you can't really test for a time out.
However you could set a flag in the success/callback function. After
the getScript() call you could use a setTimeout to test
However you could set a flag in the success/callback function. After
the getScript() call you could use a setTimeout to test for that flag
after a certain time. If the flag isn't set then the load didn't work
or took too long.
Karl Rudd
You're right. A quick look in the bug tracker turns up this ticket:
http://dev.jquery.com/ticket/1768
Karl Rudd
On Thu, Mar 26, 2009 at 3:46 PM, Mauricio (Maujor) Samy Silva
css.mau...@gmail.com wrote:
However you could set a flag in the success/callback function. After
the getScript()
6 matches
Mail list logo