Hi all:
I'm scripting with prototype. For de ajax functions I have the tipical
div that activates during a request and desactivates when the request
is completed.
------------
var globalCallbacks = {
onCreate: function(){
$('cargando').setStyle({display:'block'});
},
onComplete: function() {
if(Ajax.activeRequestCount == 0){
$('cargando').setStyle({display:'none'});
}
}
};
Ajax.Responders.register( globalCallbacks );
------------
Well, i need to upload files from a form, and, obviuosly i can't do it
with Ajax, i need to simulate an Ajax, a fake Ajax. 'Coz it isn't
Ajax, the $('cargando') is not displaying.
My question is, how can i display the $('cargando') div during the
file upload? To have the same effect as with an Ajax.
Thank you all for your time. Have a nice day!
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.