Salutations,jQuery Ajax Loader
Je voudrais savoir ce que dois-je faire pour faire apparaître un chargeur ajax ...
en fait je fais appel une fonction ajax ... tout va bien
voici comment cela se fait
$('#txtEmail').blur(function()
{
$.post("ajaxAvailability.aspx",{ email:$(this).val() } ,function(data)
{
if(data=='false')
...
maintenant, je voudrais avoir un chargeur si je l'ai fait comme ceci:
$('#loader').ajaxStart(function() {
$(this).show();
}).ajaxStop(function() {
$(this).hide();
});
Cela devrait fonctionner? ce qui se passe est que je reçois une exception dans les jquery.js ....
-Merci à l'avance
quelle exception obtenez-vous? – Aly
Cela me va bien ... votre '.post' fonctionne-t-il sans le chargeur show/hide? – Alconja
oui le post fonctionne sans le show cacher avez-vous des ideia ??? l'exception est liée à cette return this.bind ("ajaxStart", f); objet non affecté f – Killercode