[jQuery] Re: Ajax timeout doesn't call error function?

2009-04-21 Thread PanMan
errorType occur"); >     }, > ... > > Maurício >   -Mensagem Original----- >   De: Martijn Houtman >   Para: jquery-en@googlegroups.com >   Enviada em: segunda-feira, 20 de abril de 2009 10:47 >   Assunto: [jQuery] Re: Ajax timeout doesn't call error function? > &g

[jQuery] Re: Ajax timeout doesn't call error function?

2009-04-20 Thread Mauricio (Maujor) Samy Silva
"Could not load stuff - Another errorType occur"); }, ... Maurício -Mensagem Original- De: Martijn Houtman Para: jquery-en@googlegroups.com Enviada em: segunda-feira, 20 de abril de 2009 10:47 Assunto: [jQuery] Re: Ajax timeout doesn't call error function?

[jQuery] Re: Ajax timeout doesn't call error function?

2009-04-20 Thread Martijn Houtman
Hey PanMan, On Apr 20, 2009, at 12:28 PM, PanMan wrote: This works, but the error is never thrown. If I change the URL to something that's broken, I do get the error message, but on timeout it never happens. Am I doing anything wrong? Or is this a bug somewhere? No, this is not a bug. A timeo

[jQuery] Re: Ajax timeout doesn't call error function?

2009-04-20 Thread PanMan
On Apr 20, 3:03 pm, "Mauricio \(Maujor\) Samy Silva" wrote: > > Hi! > > I'm trying to setup an ajax call which throws an error on timeout. > ... > > "timeout": 1, > > "error": function(d,msg) { > >          alert("Could not load stuff"); > >      }, > ... > > This works, but the error is nev

[jQuery] Re: Ajax timeout doesn't call error function?

2009-04-20 Thread Mauricio (Maujor) Samy Silva
Hi! I'm trying to setup an ajax call which throws an error on timeout. ... "timeout": 1, "error": function(d,msg) { alert("Could not load stuff"); }, ... This works, but the error is never thrown. If I change the URL to something that's broken, I do get the error message, b

[jQuery] Re: ajax timeout question

2009-03-25 Thread Martijn Houtman
On Mar 25, 2009, at 4:32 AM, comslash.com wrote: I believe you can set the value to null or 0 to not have the request time out ... but you may want to implement something on error instead of this to say attempt the search again x times then print msg server is busy or something along those line

[jQuery] Re: ajax timeout question

2009-03-24 Thread Mathew
nice, i should have tired that i guess. still learning i got it woring just as i wanted thank you On Mar 24, 10:32 pm, "comslash.com" wrote: > Mathew, > > I believe you can set the value to null or 0 to not have the request > time out ... but you may want to implement something on error instead

[jQuery] Re: ajax timeout question

2009-03-24 Thread comslash.com
Mathew, I believe you can set the value to null or 0 to not have the request time out ... but you may want to implement something on error instead of this to say attempt the search again x times then print msg server is busy or something along those lines. On Mar 24, 10:51 pm, Mathew wrote: >

[jQuery] Re: $.ajax timeout and trouble with Microsoft IIS 6

2009-01-27 Thread Mike Alsup
> i've a client side scrit that do a request to a server the server > sleep for a 10 seconds and the respond, in the client side script i > setup the timeout option at 1 second (1000) and i want to catch the > error thrown (like explained all around the web :) ) > > a bit of code explain better: >

[jQuery] Re: $.ajax timeout and trouble with Microsoft IIS 6

2009-01-27 Thread Stefano Corallo
maybe an $.ajax bug like explained in : http://groups.google.it/group/jquery-en/t/b75f222ac0a68bb2?hl=it On 23 Gen, 09:48, Stefano Corallo wrote: > the cache:false option not work. :( > > On 22 Gen, 20:10, jay wrote: > > > Perhaps the cache:false option is necessary? It adds a timestamp to > >

[jQuery] Re: $.ajax timeout and trouble with Microsoft IIS 6

2009-01-23 Thread Stefano Corallo
the cache:false option not work. :( On 22 Gen, 20:10, jay wrote: > Perhaps the cache:false option is necessary? It adds a timestamp to > the end of the querystring.  The browser may be caching the request > and therefore not showing potential errors.  But then that wouldn't > explain the descrep

[jQuery] Re: $.ajax timeout and trouble with Microsoft IIS 6

2009-01-22 Thread Stefano Corallo
mmm i don't know ... i'll give it a try and let you know...any other idea? It seems that the connection is not closed but the server keep it alive. If i'm not wrong when a timeout occurs the client close the connection right? In the apache way it work and i can see that (thanks firebug), but with

[jQuery] Re: $.ajax timeout and trouble with Microsoft IIS 6

2009-01-22 Thread jay
Perhaps the cache:false option is necessary? It adds a timestamp to the end of the querystring. The browser may be caching the request and therefore not showing potential errors. But then that wouldn't explain the descrepency between apache and iis. On Jan 22, 11:55 am, Stefano Corallo wrote:

[jQuery] Re: $.ajax() timeout

2008-09-08 Thread pcdinh
Hi Josh, It is not JQuery style. JQuery allows you to handle timeout event by implementing error() callback like this jQuery.ajax({ beforeSend: function(xhr) { // do something such as: set headers }, type: "GET", timeout: 5000, url: Pone.buildRestfulUrl(document.getEl

[jQuery] Re: $.ajax() timeout

2008-08-20 Thread ak732
The timeout is the time to wait for a server response before the code decides to just throw an

[jQuery] Re: $.ajax() timeout

2008-08-20 Thread hubbs
Perfect! That works great, thank you! On Aug 20, 12:34 pm, "Josh Nathanson" <[EMAIL PROTECTED]> wrote: > "timeout" is actually how long the request will wait to complete before it > sends back a timeout error.  You actually want setTimeout, like so.  This > will wait five seconds before doing th

[jQuery] Re: $.ajax() timeout

2008-08-20 Thread Josh Nathanson
"timeout" is actually how long the request will wait to complete before it sends back a timeout error. You actually want setTimeout, like so. This will wait five seconds before doing the ajax request. var t = setTimeout( function() { $.ajax({ type: "GET",