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
"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?
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
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
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
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
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
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:
>
> 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:
>
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
> >
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
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
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:
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
The timeout is the time to wait for a server response before the code
decides to just throw an
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
"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",
17 matches
Mail list logo