FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Has anyone tried reverse ajax?

 


varun_dodla
Hi All,
Has anyone tried reverse ajax (as it is known ) with DWR 2.0. It is said that using that the server can directly send data to the browser without the browser explicitly polling the server. I wanted to use this for an online game but the example available on the DWR site is not very much clear. It doesn't tell where exactly the code should go and it speaks about identifying all the browsers with a particular web session but how do we identify a single browser is not told. If anyone has tried this out please share.

Thanks in advance.
alalex
im not sure i understood well what you wanted to know, but is this what you wanted?
Code:
// Get the current page
WebContext wctx = WebContextFactory.get();
String currentPage = wctx.getCurrentPage();


Confused sorry if thats not..
chris20
Could you provide a link to what you mean. It sounds kind of interesting, but I'm not quite sure what you are talking about.

Thanks
jabapyth
ive never heard of reverse ajax, but you could use regular ajax, and just check every second or so.
varun_dodla
Thanks for the replies.
chris20 wrote:
Could you provide a link to what you mean. It sounds kind of interesting, but I'm not quite sure what you are talking about.

Thanks


Here are some links that will tell you about reverse AJAX.

http://getahead.org/blog/joe/2006/04/11/1144770216929.html
http://prokata.com/reverseajax

jabapyth wrote:
ive never heard of reverse ajax, but you could use regular ajax, and just check every second or so.


That polling is what is the advantage reverse AJAX gives you. The DWR takes care of the polling in the background.
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.