[Javascript] prototype responder "un-register"

Michael Borchers list at tridemail.de
Mon Jan 21 06:30:50 CST 2008


function refreshFavorites() {
Ajax.Responders.register({
  onCreate: function(){
    checkLogin();
  },
});



I use the checkLogin() to see if the the user is logged in and to decide wheter to fire the parent AJAX request
or to redirect to the login page.

my problem:
the checkLogin() starts an AJAX request too. Of course I would like to keep prototype for the request,
so can I unregister and then re-register the responder or is there a better way?

-- 
MfG
Michael Borchers
Tridem GmbH
http://www.tridem.de
mailto: borchers at tridem.de
Tel.: 0491 / 96 06 71 63
ICQ: 322766923
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20080121/29e28d0b/attachment.htm>


More information about the Javascript mailing list