I guess I don't understand as I do this all the time. I have calls that don't actually return anything and it still works fine. The one thing that you have to remember when executing returned code inside the eventlistener is that the keyword 'this' does not reference the object, like a button that you clicked, it references the Request. So if you are executing code that modifies the original calling object you have to make adjustments to your code on the server side to make sure that you are referencing the correct object. But other then that there is no reason it won't work, like I said I do it extensively in my program. It works fine. If it's not working for you then you are doing something wrong and once you get that part corrected it will work fine.

Jim

On 10/21/06, DFilzhut <[EMAIL PROTECTED]> wrote:

That's for sure, but I am looking for a way to stop code execution until the
results arrives. The simplified scenario is the following:

1. Object method is called
2. Some code in the method is executed
3. A request is sent
4. The result of the request is returned

I cannot put the return code into the event listener, this won't work. In
this case the called function would return nothing. At the moment the result
arrives the event listener will be called and returns the data to the
instance that called the event listener, it goes to nirvana.



Jim Hunter-2 wrote:
>
> put your  /* following code */ inside the completed event listener, that's
> what it's for. That code will not get executed until your request is done.
>

--
View this message in context: http://www.nabble.com/RemoteRequest-and-waiting-for-reply%2C-no-listener-tf2483904.html#a6931033
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to