Posted By

sendoa on 07/14/06


Tagged

ajax prototype responders


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

luman
xaviaracil
postNuKe
alexsancho


Ejemplo de Ajax.Responders (Prototype)


 / Published in: JavaScript
 

URL: http://www.gen-x-design.com/demos/activity_indicator/responder.js

Ejemplo de cómo utilizar el objeto Ajax.Responders de Prototype.

El ejemplo hace uso de Scriptaculous.

  1. Ajax.Responders.register({
  2. onCreate: function() {
  3. if($('notification') && Ajax.activeRequestCount > 0)
  4. //Se muestra una capa con Scriptaculous
  5. Effect.Appear('notification',{duration: 0.25, queue: 'end'});
  6. },
  7. onComplete: function() {
  8. if($('notification') && Ajax.activeRequestCount == 0)
  9. //Se oculta una capa con Scriptaculous
  10. Effect.Fade('notification',{duration: 0.25, queue: 'end'});
  11. }
  12. });

Report this snippet  

You need to login to post a comment.