There's the ordered setting on the DWR engine too... that I think would
do it... I'm not clear if under the covers this makes XMLHttpRequest
synchronous (usually bad) or if the engine just manages making it all
asynchronous itself, which would mean the UI probably wouldn't lock up
and it might be acceptable... there's a separate async setting that
according to the docs does make XMLHttpRequest synchronous (or not)...
playing with ordered might be worth a shot.
--
Frank W. Zammetti
Author of "Practical DWR 2 Projects"
and "Practical JavaScript, DOM Scripting and Ajax Projects"
and "Practical Ajax Projects With Java Technology"
for info: apress.com/book/search?searchterm=zammetti&act=search
Java Web Parts - javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!
My "look ma, I have a blog too!" blog: zammetti.com/blog
FrankJose Noheda wrote:
> call it in the callback of the first one. there are other means but
> they're not as reliable. with gears integration things could improve in
> this area
>
> On Wed, May 7, 2008 at 3:58 PM, Nitin Thakur <
myegotrip@...
> <mailto:
myegotrip@...>> wrote:
>
>
> Is there any way to synchronize java-function-calls from javascript
> without
> server explicitly sending acknowledgment through reverse Ajax. Say,
> i want
> to make a call to method2 (JavaClass.method2) only after my previous
> call
> has been completed (JavaClass.method1). is there any way to assure this.
> --
> View this message in context:
>
http://www.nabble.com/synchronizing-the-java-function-calls-in-DWR-tp17105611p17105611.html> Sent from the DWR - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
users-unsubscribe@...
> <mailto:
users-unsubscribe@...>
> For additional commands, e-mail:
users-help@...
> <mailto:
users-help@...>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
users-unsubscribe@...
For additional commands, e-mail:
users-help@...