Oh wow, guess I totally missed that.
I like the straight URL request approach because I like RESTful web
interfaces. Maybe rpc can do that too, I don't know rpc that well,
but at first glance at it, you'd need some specialized server logic.
Thanks for the help.
-Matt
On Thu, Apr 22, 2010 at
On Wed, Apr 21, 2010 at 16:47, Matthew Curry wrote:
> Reviving a months-old thread...
>
> I'm encountering a similar problem, but with an event-handler that is a
> closure.
>
> The relevant code is below. In the main function I have a local
> variable, getfeeds_req, that is an instance of qx.io.
Reviving a months-old thread...
I'm encountering a similar problem, but with an event-handler that is a closure.
The relevant code is below. In the main function I have a local
variable, getfeeds_req, that is an instance of qx.io.remote.Request.
I attempt to use that variable in refreshbutton's
You can also bind your function. So where this won't work:
this.rpc.callAsync(this._handleResult);
You can do this:
this.rpc.callAsync(qx.lang.Function.bind(this._handleResult, this));
That should help keep your code tidy :)
Matt
JB wrote:
> Thanks, I got it. I am familiar with them from the
Thanks, I got it. I am familiar with them from the LISP and Scheme
languages but I was not familiar with the scoping rules in javascript.
In the function that calls this.rpc.callAsync I create local variable
with a value of this.selectBoxControl like so:
var selBox = this.selectBoxCont
On Sat, Oct 24, 2009 at 03:10, JB wrote:
> Thanks!!! That did the trick. However, I think I might have found a case
> where that does not work so well. The button event listeners work great!
> But I also have an RPC callback as well and there are an arbitrary
> number of arguments to callAsync th
Thanks!!! That did the trick. However, I think I might have found a case
where that does not work so well. The button event listeners work great!
But I also have an RPC callback as well and there are an arbitrary
number of arguments to callAsync that are passed to the remote
procedure. Simply p
Hi,
you can rewrite it to:
this._yourButton.addListener("execute", this._onExecute, this);
and in your class you should create _onExecute member function:
_onExecute: function(ev)
{
// do something useful...
}
or you can of course pass this to inline event handler:
this._your
OK, what is the typical way people manipulate objects from an event
handler. This is another thing that is driving me crazy. I have the
event handlers working but they can never do anything useful because
everything they need to access is not available from within the
handler. This makes it