I'm having a problem where I can't access variables of the main class
from callbacks.  It seems like I should have to use a keyword like
parent or something, but that didn't work.  Any thoughts on this?

//Sample Code
var Controller = Class.create({
  initialize: function() {
    //This variable is the problem
    this.busy = true;
    new Ajax.Request(this.AJAX_SUBMIT_PAGE,
    {
      method:'post',
      parameters: params,
      onSuccess: this.HandleResponse
    });
},

  HandleResponse: function(transport){
    //Returns undefined
    alert(this.busy);
  }
});

--~--~---------~--~----~------------~-------~--~----~
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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to