hello, i have a little problem...
in need to call a method of an outer class within a anonyme function.
here is my code example:
-- snip
var Test = Class.create();
Test.prototype = {
test: function() {
alert('test!');
}
query: function() {
new Ajax.Request(...url..., {
onSuccess: function(transport, json) {
// call Test.test() here???
Test.test();
}
});
}
}
-- snip
I tried to write a method Test.queryOnSuccess(transport, json) which
is located in the same class and overwrites the anonyme function, but
this didn't work either.
Can anybody tell me how to do this?
Thank you
Regards Christoph Hautzinger
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---