[Proto-Scripty] Re: How to autorefresh part of a page?

2009-09-17 Thread Dharm Shankar
if you are using ajax, then use setTimeout or setInterval , to get updated
data.

Regards
Dharm

On Thu, Sep 17, 2009 at 2:57 PM, tailangong  wrote:

>
> Hi,
>
> I've tried the PeriodicalUpdater before and it only call the servlet
> twice.
> I have done some small research and found out that this problem only
> occurs in IE.
> However, this can be solved by using method:"post" instead of
> method:"get".
> Thanks for your help, both TJ and Peter.
>
> On Sep 17, 4:28 pm, "T.J. Crowder"  wrote:
> > Hi,
> >
> > This is exactly what the PeriodicalUpdater[1] is for.
> >
> > If you're just starting out with Prototype, can I recommend you read
> > the API[2] from beginning to end.  It will take about an hour, and
> > repay you multifold.
> >
> > [1]http://api.prototypejs.org/ajax/ajax/periodicalupdater.html
> > [2]http://api.prototypejs.org
> >
> > HTH,
> > --
> > T.J. Crowder
> > tj / crowder software / comwww.crowdersoftware.com
>  >
> > On Sep 16, 6:36 pm, tailangong  wrote:
> >
> >
> >
> > > Hi, I am looking on how to autorefresh part of a page. Let me explain
> > > my situation.
> > > I have a page that display data from a database. Suppose that a user
> > > is viewing the page, and at the same time, the database is updated.
> > > How could I display the latest data (with some highlight for few
> > > seconds) to the user without needing them to refresh that particular
> > > page? I mean, they can see the data changing on that page without
> > > doing anything. Any idea?
> >
> > > Currently using jsp and servlet. Thanks for your help.
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: How to autorefresh part of a page?

2009-09-17 Thread tailangong

Hi,

I've tried the PeriodicalUpdater before and it only call the servlet
twice.
I have done some small research and found out that this problem only
occurs in IE.
However, this can be solved by using method:"post" instead of
method:"get".
Thanks for your help, both TJ and Peter.

On Sep 17, 4:28 pm, "T.J. Crowder"  wrote:
> Hi,
>
> This is exactly what the PeriodicalUpdater[1] is for.
>
> If you're just starting out with Prototype, can I recommend you read
> the API[2] from beginning to end.  It will take about an hour, and
> repay you multifold.
>
> [1]http://api.prototypejs.org/ajax/ajax/periodicalupdater.html
> [2]http://api.prototypejs.org
>
> HTH,
> --
> T.J. Crowder
> tj / crowder software / comwww.crowdersoftware.com
>
> On Sep 16, 6:36 pm, tailangong  wrote:
>
>
>
> > Hi, I am looking on how to autorefresh part of a page. Let me explain
> > my situation.
> > I have a page that display data from a database. Suppose that a user
> > is viewing the page, and at the same time, the database is updated.
> > How could I display the latest data (with some highlight for few
> > seconds) to the user without needing them to refresh that particular
> > page? I mean, they can see the data changing on that page without
> > doing anything. Any idea?
>
> > Currently using jsp and servlet. Thanks for your help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: How to autorefresh part of a page?

2009-09-17 Thread Peter De Berdt
And if you really need realtime feedback, you'll have to resort to  
either implementing Comet or a Flash based persistent messaging system  
like the one used in Juggernaut (http://juggernaut.rubyforge.org/).  
Both require more than basic web development knowledge to implement  
properly.

PeriodicalUpdater (even with decay on the clientside, caching and  
etagging on the serverside) can lead the request hammering of the  
server (depending on the number of visitors and the time they leave  
your auto-updating page open). Keep that in mind.

You have to wonder if the better option wouldn't be to explain to your  
client that web applications are stateless in nature (i.e. once they  
are loaded, they don't update by themselves automatically if data on  
the serverside is changed).

On 17 Sep 2009, at 10:28, T.J. Crowder wrote:

> This is exactly what the PeriodicalUpdater[1] is for.
>
> If you're just starting out with Prototype, can I recommend you read
> the API[2] from beginning to end.  It will take about an hour, and
> repay you multifold.
>
> [1] http://api.prototypejs.org/ajax/ajax/periodicalupdater.html
> [2] http://api.prototypejs.org
>
> HTH,
> --
> T.J. Crowder
> tj / crowder software / com
> www.crowdersoftware.com
>
>
> On Sep 16, 6:36 pm, tailangong  wrote:
>> Hi, I am looking on how to autorefresh part of a page. Let me explain
>> my situation.
>> I have a page that display data from a database. Suppose that a user
>> is viewing the page, and at the same time, the database is updated.
>> How could I display the latest data (with some highlight for few
>> seconds) to the user without needing them to refresh that particular
>> page? I mean, they can see the data changing on that page without
>> doing anything. Any idea?

Best regards

Peter De Berdt


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: How to autorefresh part of a page?

2009-09-17 Thread T.J. Crowder

Hi,

This is exactly what the PeriodicalUpdater[1] is for.

If you're just starting out with Prototype, can I recommend you read
the API[2] from beginning to end.  It will take about an hour, and
repay you multifold.

[1] http://api.prototypejs.org/ajax/ajax/periodicalupdater.html
[2] http://api.prototypejs.org

HTH,
--
T.J. Crowder
tj / crowder software / com
www.crowdersoftware.com


On Sep 16, 6:36 pm, tailangong  wrote:
> Hi, I am looking on how to autorefresh part of a page. Let me explain
> my situation.
> I have a page that display data from a database. Suppose that a user
> is viewing the page, and at the same time, the database is updated.
> How could I display the latest data (with some highlight for few
> seconds) to the user without needing them to refresh that particular
> page? I mean, they can see the data changing on that page without
> doing anything. Any idea?
>
> Currently using jsp and servlet. Thanks for your help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---