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
