Hi All,

Bringing this thread back to life.

I am having a similar problem to the original author of this thread  
and am still not clear what the right way to solve it is.  Basically  
what I am doing is very simple:

I am "tail"-ing the log of a process running on the server and  
updating a WTextArea on a WTimer every 1 second with the contents of  
that file. What I notice is that sometimes, intermittently (seems to  
depend on connection speed?) there will be a pause and the  
"Loading..." will come up.   I also found that I had to limit the size  
of the update or else I would exceed the max http request size.  What  
is the correct way to asynchronously update a WTextArea on some  
regular interval on the server?  If someone could point me to an  
example, I would be greatly appreciative.  I browsed through the  
simplechat example, but I guess I still don't entirely get what I need  
to do.  I am imagining what I am trying to do is very common.

Thanks for any help!

-- Dan

On Nov 25, 2009, at 4:55 AM, Wim Dumon wrote:

> Hello Hadass,
>
> The simplechat example demonstrates server push.
>
> Best regards,
> Wim.
>
> 2009/11/25 HADASS YAARI <[email protected]>:
>> How can I make the server push updates to the client? (not with a  
>> timer)
>> Thanks
>> Hadas
>>
>> -----Original Message-----
>> From: OvermindDL1 [mailto:[email protected]]
>> Sent: Wednesday, November 18, 2009 11:06 PM
>> To: [email protected]
>> Subject: Re: [Wt-interest] an idea of accelerating a page reloading
>>
>>
>> On Wed, Nov 18, 2009 at 12:28 AM, Koen Deforche <[email protected]>  
>> wrote:
>>> Hey Hadass,
>>>
>>> 2009/11/18 HADASS YAARI <[email protected]>:
>>>> I have some dynamic pages (that are built with a timer). There is a
>>>> lot of data in the pages - very big tables. When the page is
>>>> refreshing (in timeout) I start building the table and it takes a  
>>>> lot
>>>> of time (~ half a second) and meanwhile the client is stuck. Is  
>>>> there
>>>> a way to build the page in other way which won't be visible to the
>>>> user? I thought maybe to do that with another thread that just will
>>>> fill in the table - but is this the right way? can I change the  
>>>> table
>>>> in a way that won't affect the page?
>>>
>>> I believe it is your only option if you want to do this outside the
>>> event loop, which is the only way to avoid the delay.
>>>
>>> Note that you are free to modify any part of the widget hierarchy  
>>> (or
>>> models used by the widgets) outside the event loop as long as you
>>> register your attach your thread to the application instance and  
>>> grab
>>> the application's update lock (in WApplication: attachThread() and
>>> updateLock()). These modifications will be synchronized with the
>>> browser on the next event, so you could for example chose to  
>>> attach to
>>> the WTimer a no-op call back routine.
>>
>> Or instead of a WTimer, just keep the connection open so the server  
>> can push updates across if you will not have too many people on at  
>> the same time (60k or so?)?
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports  
>> 2008 30-Day trial. Simplify your report design, integration and  
>> deployment - and focus on what you do best, core application  
>> coding. Discover what's new with Crystal Reports now.  
>> http://p.sf.net/sfu/bobj-july 
>>  _______________________________________________
>> witty-interest mailing list [email protected]
>> https://lists.sourceforge.net/lists/listinfo/witty-interest
>> **********************************************************************************************
>> This message (including any attachments) issued by RAFAEL- ADVANCED  
>> DEFENSE SYSTEMS LTD.
>> (hereinafter "RAFAEL") contains confidential information intended  
>> for a specific individual and purpose, may
>> constitute information that is privileged or confidential or  
>> otherwise protected from disclosure. If you are not
>> the intended recipient, you should contact us immediately and  
>> thereafter delete this message from your
>> system. You are hereby notified that any disclosure, copying,  
>> dissemination, distribution or forwarding of this
>> message, or the taking of any action based on it, is strictly  
>> prohibited. If you have received this e-mail in error,
>> please notify us immediately by e-mail mailto:[email protected]  
>> and completely delete or destroy any and all
>> electronic or other copies of the original message and any  
>> attachments thereof.
>> **********************************************************************************************
>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports  
>> 2008 30-Day
>> trial. Simplify your report design, integration and deployment -  
>> and focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> witty-interest mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/witty-interest
>>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008  
> 30-Day
> trial. Simplify your report design, integration and deployment - and  
> focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest


------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to