
Some parts of this message have been removed.
Learn more about Nabble's
security policy.
Hi.
I’m quite new to DWR and I really like it, but
I think I have a problem with the JavaScript part ;)
How can I get the return values of a callback into
JavaScript “global” variables?
I can read variables in the callback function but
cannot modify them.
E.g.:
{
this.test = "Hello";
var obj = this;
var callbackfunc =
function(arg)
{
alert(obj.test);
// alerts “Hello”
obj.test
= "Test";
//
or obj.test = arg;
alert(obj.test);
// alerts “Test”
}
Remote.doSomething(callbackfunc);
alert(obj.test); //
alerts Hello
}
Will always alert “Hello” and I don’t
understand why
or how I could get at the return values from the
outside at all.
Thanks a lot in advance
Regards
David