You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by dinesh707 <di...@gmail.com> on 2012/10/18 12:57:18 UTC

How to make a zone refresh with a JavaScript polling?

I need to refresh a page zone. Is there a way that I write the JavaScript
code to call some method in Tapesrty (Java) code and it will refresh the
zone. Else how can i achieve this?




--
View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-make-a-zone-refresh-with-a-JavaScript-polling-tp5717032.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: How to make a zone refresh with a JavaScript polling?

Posted by Charlouze <me...@charlouze.com>.
Hey,

You can also try this one :
http://java.dzone.com/articles/periodic-zone-refresh-mixin

I have been using it in one of my company application and it works great.

Charles.

2012/10/18 Dieter Sauvillers <di...@gmail.com>

> Hi,
>
> have look at the periodic ajax update from jumpstart
>
>
> http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/periodicupdate
>
>
> On 18 October 2012 12:57, dinesh707 <di...@gmail.com> wrote:
> > I need to refresh a page zone. Is there a way that I write the JavaScript
> > code to call some method in Tapesrty (Java) code and it will refresh the
> > zone. Else how can i achieve this?
> >
> >
> >
> >
> > --
> > View this message in context:
> http://tapestry.1045711.n5.nabble.com/How-to-make-a-zone-refresh-with-a-JavaScript-polling-tp5717032.html
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: How to make a zone refresh with a JavaScript polling?

Posted by dinesh707 <di...@gmail.com>.
Hi, it is working fine. I had some JS bugs created becouse of using jQuery in
the same code. When i fix all those problems it started to work. Thank you
all



--
View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-make-a-zone-refresh-with-a-JavaScript-polling-tp5717032p5717041.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: How to make a zone refresh with a JavaScript polling?

Posted by dinesh707 <di...@gmail.com>.
I tried the jump start demo. it compiles and run without any errors. But it
do not refresh the time as its shown in demo. It will call only the
"getServerTime()" once.  and it never calls the "onRefreshTimeZone()". Any
idea whats going on there?

I have some other codes in the system too. So its not plane time refreshing
system





--
View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-make-a-zone-refresh-with-a-JavaScript-polling-tp5717032p5717039.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: How to make a zone refresh with a JavaScript polling?

Posted by Dieter Sauvillers <di...@gmail.com>.
Hi,

have look at the periodic ajax update from jumpstart

http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/periodicupdate


On 18 October 2012 12:57, dinesh707 <di...@gmail.com> wrote:
> I need to refresh a page zone. Is there a way that I write the JavaScript
> code to call some method in Tapesrty (Java) code and it will refresh the
> zone. Else how can i achieve this?
>
>
>
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-make-a-zone-refresh-with-a-JavaScript-polling-tp5717032.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: How to make a zone refresh with a JavaScript polling?

Posted by Lance Java <la...@googlemail.com>.
I've created a push library for tapestry here:
https://github.com/uklance/tapestry-cometd



--
View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-make-a-zone-refresh-with-a-JavaScript-polling-tp5717032p5717035.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org