Thursday, July 14th, 2005

DWR and asynchronous ordering: DWREngine.setOrdered(true)

Category: JavaScript

Joe Walker (of DWR) has replied to the various comments on the A in Ajax.

Joe shows how simple it is to not get burned in DWR:

The secret sauce is DWREngine.setOrdered(true). Which does what it says on the tin – makes sure that we don’t dispatch a new Ajax call until the last one has returned.

If you’ve made a call to DWREngine.setOrdered(true) then DWR keeps a list of the calls that it has been asked to send, but has not been able to yet and sends them just as soon as it can. (So whenever an Ajax call returns DWR checks to see if it needs to send another one out).

Documentation

Posted by Dion Almaer at 12:31 pm
Comment here

+++--
3.5 rating from 14 votes

Comments Here »

Comments feed

Leave a comment

You must be logged in to post a comment.