may be : http://prototypejs.org/api/ajax/responders
In your case it should be something like
Ajax.Responders.register({
onCreate: function() {
Ajax.activeRequestCount++;
$(''progress'').show();
},
onComplete: function() {
Ajax.activeRequestCount--;
$(''progress'').hide();
}
});
with an HTML image somewhere in yout page
<img src="progress.gif" id="progress"
style="display:none"
alt="progress"/>
And check http://ajaxload.info/ to create animated gif
And you should read the little tutorial
http://prototypejs.org/learn/introduction-to-ajax
HTH
Seb
On May 2, 2007, at 11:11 AM, zio budda wrote:
> Hi, I have read but I can not find anymore how to visualize an
> image (the usual image for ajax) in automatic when my script are in
> OnLoading state (ajax request). Can some1 give me the url or the
> code ?
>
> Tnx in advance and sorry for the stupid question.
>
> M.
>
> --
> Michel ''ZioBudda'' Morelli
michel-0oFb7YEmpcLk1uMJSBkQmQ@public.gmane.org
> Consulenza sistemistica in ambito OpenSource.
> Sviluppo applicazioni web dinamiche (LAMP+Ajax)
> Telefono: +39-3939890025 -- Fax: +39-0291390660
>
> http://www.ziobudda.net ICQ: 58351764
> http://www.ziobuddalabs.it Skype: zio_budda
> http://www.ajaxblog.it MSN:
> michel-0oFb7YEmpcIlQMARD/awdg@public.gmane.org
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---