I h开发者_Go百科ave a requirement to show a stream of data via Javascript. Watching an http log file in real-time would be a good example. The data is in fact nested JSON but it could be forced into a table-like structure. The data source would need to be an AJAX call executed periodically (WebSockets would be better but it needs to support non HTML5 browsers). The data should appear to be streaming rather than just refreshing each time the AJAX call is made.
Ideally, it would be good to be able to do things like set filters onto the data as it streams through (either clientside or as part of the AJAX call).
My requirement is pretty specific but other sphere's where this kind of widget could be useful:
- Stock trades
- Realtime-news
- Twitter updates
I may have to write it myself but I'd prefer to use something that's already out there.
Having a way to pause and restart it would also be good.
How about orbited?
Are you looking for something like this jQuery Twitter streaming widget?
精彩评论