[Proto-Scripty] Re: How do I access 'this' from within Ajax.Request onSuccess?

2009-06-07 Thread Col
Thanks for the reply. That probably one of the most helpful replies I've ever had. :-) --~--~-~--~~~---~--~~ 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

[Proto-Scripty] How do I access 'this' from within Ajax.Request onSuccess?

2009-06-02 Thread Col
I'm a little confused about context and how to access things correctly when my ajax request onSuccess function runs. My code currently looks something like this: var MyObject = Class.create({ initialize: function() { this.items = []; }, loadItemsFromUrl: function(url) { new