Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.lang.javascript > #7940
| Newsgroups | it.comp.lang.javascript |
|---|---|
| Date | 2015-11-26 05:13 -0800 |
| References | <n34jbl$tmr$1@speranza.aioe.org> |
| Message-ID | <06e3a8e9-2473-447f-b3ac-a69f47f71090@googlegroups.com> (permalink) |
| Subject | Re: intercettare "error" su chiamata ajax. |
| From | 4ndre4 <a.laforgia@gmail.com> |
On Wednesday, 25 November 2015 15:16:08 UTC, Meldro wrote: [...] > Come posso capire cosa non va? Facendo debug, ovviamente. Passo passo, analizzando cio` che viene passato sulla rete come richiesta/risposta. Inoltre: "error Type: Function( jqXHR jqXHR, String textStatus, String errorThrown ) A function to be called if the request fails. The function receives three arguments: The jqXHR (in jQuery 1.4.x, XMLHttpRequest) object, a string describing the type of error that occurred and an optional exception object, if one occurred. Possible values for the second argument (besides null) are "timeout", "error", "abort", and "parsererror". When an HTTP error occurs, errorThrown receives the textual portion of the HTTP status, such as "Not Found" or "Internal Server Error." As of jQuery 1.5, the error setting can accept an array of functions. Each function will be called in turn. Note: This handler is not called for cross-domain script and cross-domain JSONP requests. This is an Ajax Event." http://api.jquery.com/jquery.ajax/ Aggiungi i parametri alla tua funzione di errore e vedi qual e` lo status code che ti restituisce il server e che errore esattamente viene sollevato.
Back to it.comp.lang.javascript | Previous | Next — Previous in thread | Find similar
intercettare "error" su chiamata ajax. Meldro <Meldro@nospam.no> - 2015-11-25 16:15 +0100 Re: intercettare "error" su chiamata ajax. Alessandro Pellizzari <shuriken@amiran.it> - 2015-11-25 19:53 +0000 Re: intercettare "error" su chiamata ajax. 4ndre4 <a.laforgia@gmail.com> - 2015-11-26 05:13 -0800
csiph-web