Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.lang.javascript > #7943
| Path | csiph.com!goblin3!goblin2!goblin.stu.neva.ru!feeder.erje.net!1.eu.feeder.erje.net!nntpspool01.opticnetworks.net!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | GriS <GriS@nospam.no> |
| Newsgroups | it.comp.lang.javascript |
| Subject | Gestione eventi ajax (ajaxStop, ajaxError etc...) non sempre funzionante. |
| Date | Wed, 16 Dec 2015 09:50:13 +0100 |
| Organization | Aioe.org NNTP Server |
| Lines | 21 |
| Message-ID | <n4r8k7$ob0$1@speranza.aioe.org> (permalink) |
| NNTP-Posting-Host | 1EYKSE0oo3A8XWyQY7G6kA.user.speranza.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=iso-8859-15; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (Windows NT 6.2; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| X-Mozilla-News-Host | news://nntp.aioe.org:119 |
| Xref | csiph.com it.comp.lang.javascript:7943 |
Show key headers only | View raw
Ciao a tutti,
ho ereditato codice fatto da altri e tra le varie cose da distemare devo
risolvere il caso di una icona tipo "spinner" che non scompare al
termine di chiamate ajax che o vanno in errore o hanno problemi in
genere (sto ancora debuggando in cerca del vero motivo).
Al momento, lo spinner è gestito così:
$("#spinner").bind("ajaxSend", function() {
$(this).show();
}).bind("ajaxStop", function() {
$(this).hide();
}).bind("ajaxError", function() {
$(this).hide();
});
Sottolineando che, in alcuni casi ancora non definiti, $(this).hide();
non viene eseguita, sapete consigliarmi il modo migliore per gestire
comunque tutte le casistiche di una chiamata ajax?
Grazie in anticipo
Back to it.comp.lang.javascript | Previous | Next — Next in thread | Find similar
Gestione eventi ajax (ajaxStop, ajaxError etc...) non sempre funzionante. GriS <GriS@nospam.no> - 2015-12-16 09:50 +0100
Re: Gestione eventi ajax (ajaxStop, ajaxError etc...) non sempre funzionante. Alessandro Pellizzari <shuriken@amiran.it> - 2015-12-16 20:19 +0000
Re: Gestione eventi ajax (ajaxStop, ajaxError etc...) non sempre funzionante. GriS <GriS@nospam.no> - 2015-12-17 12:02 +0100
csiph-web