I'd like to see a new attribute in the ListPages module.
Attribute | Allowed Values | Description |
---|---|---|
live | # of seconds | Updates ListPages every # seconds. If live="0" then the liveness should be turned off. |
How it might work
The idea is that every # of seconds on the user's machine, an AJAX request will check if the any new pages/edits have occurred to any pages according to the ListPages criteria. If any updates have occurred, the user's machine will then retrieve the new data.
Example
[[module ListPages category="twitter" order="created_at desc" limit="5" live="10"]]
**%%created_by%%** says: %%content%%
[[/module]]
This code would list 5 of the most recent page in the “twitter” category.
Every 10 seconds, the user's machine will check to see if any new pages have been added to the "twitter" category.
If so, then the user's machine makes a request to the Wikidot server for the HTML code of the updated ListPages.
The user's machine then replaces the current HTML ListPages code with the updated version.
Conclusion
Combining this feature with the new "autosave" feature, this will effectively grant us the ability to have a live conversation in the browser window without having to refresh/reload the whole page.