[jQuery] Re: aborting a $.getScript() request

2009-03-26 Thread Mauricio (Maujor) Samy Silva
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

[jQuery] Re: aborting a $.getScript() request

2009-03-26 Thread Karl Rudd
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

[jQuery] Re: aborting a $.getScript() request

2009-03-26 Thread Mauricio (Maujor) Samy Silva
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

[jQuery] Re: aborting a $.getScript() request

2009-03-25 Thread Karl Rudd
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

[jQuery] Re: aborting a $.getScript() request

2009-03-25 Thread Mauricio (Maujor) Samy Silva
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

[jQuery] Re: aborting a $.getScript() request

2009-03-25 Thread 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()