On Thursday, November 3, 2016 at 3:51:16 PM UTC-4, Dave S wrote:
>
>
> With this mechanism, you'd spawn a web worker  to do jquery/ajax to check 
>>> when it was time to replace the content.  A couple of the examples 
>>> calculate Pi, and paste the results into the main page.
>>>
>>
>> This approach is "short polling" (i.e., polling the server with quick 
>> requests at some interval to check for updates). Note, there is no 
>> particular reason this must be done with a web worker -- you can simply do 
>> it from the main web page, as it has been done since long before web 
>> workers existed. 
>>
>
> The idea I was applying was keeping the main page quiet, although Google 
> News has used refresh interval to update the entire main page.
> Web workers give you a thicker curtain to draw over the checkers, than 
> does a LOAD/jquery/ajax in a timer loop on the main page.
>

Understood. Just wanted to make it clear that the short-polling approach 
does not *require* the added complication of web workers.

Anthony

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to