Russell
1. Starting with jabsorb 1.4, attempting to use synchronous calls in
the form that they exist now will fail and throw an exception.
2. But we will add a new API flag that can be set client side to re-
enable them for older code that depends on it. At least this way the
developer has to consciously know that they are enabling something
that isn't recommended. Alternatively we could just tell people that
want to use synchronous calls to use the 1.3 client which (most
likely) will still be compatible (and probably even included) with the
1.4 server.
3. We add a new method of making a synchronous call... something like
jsonrpc.syncCall("methodName").doStuff(...) Again with this, it's
clear that the developer has to consciously know that they are doing
synchronous calls and therefore, hopefully think a little bit more
about the ramifications.
On Feb 27 2009, 1:45 pm, Arthur Blake <arthur.bl...@gmail.com> wrote:
> If you need to save some kind of state back to the server when the
> page is unloaded (in the onbeforeunload window handler) async calls
> don't work! Presumably because the browser unloads and shuts down
> everything so fast, it doesn't have a chance to get the call out.
> Usingsynchronouscalls here causes the shutdown process to block
> until the call gets off (and returns.)
I currently use jabsorb-1.2.2 in production along with DWR to do
Comet.
Unfortunately I started using synchronous in the early design of a
financial
website... and it totally does rely on "state" to optimize when to
send new
prices...and do database lookups... and it is way to complicated to
migrate
to async. I tried it once... everything blew up... and went back to
the old
trustworthy synchronous... which has worked totally reliably with
minor
browser mini-hang issues. For now I'm stuck with it. I am just
hoping you
make it easy to stay with Jabsorb... beyond 1.3.1, while only using
synchronous.
I could care less about some other features you are planning.... But
Comet is
way cool. I use DWR+Jabsorb+JQuery (All 3 do Ajax)... But I still
like jabsorb
because it is JSON (compared to DWR). I love JQuery... but it has no
Comet.
Just a user giving some feedback...
And thanks for such a nice "Simple" JSON Ajax tool.
I was first into json-rpc because of its simple examples and easy to
demo.
I was first into DWR because its simple examples (in the Comet area).
And JQuery is awesome... Its a nice team of tools.
Thanks again for all your hard work.