0

I'm trying to create a "live" HTML page that updates based upon dynamic data sources. The data source could be individual files, or could be entries in a database.

My thought is to create a <div> (animated to pop on the screen via jQueryUI) for each data source as it comes online, with its data updating periodically. Then, when the the timestamped data becomes stale, remove the div.

I have some ideas, but want to hear different implementation strategies suggestions on the best way to handle this.

Thanks!

Jeff Lamb
  • 5,755
  • 4
  • 37
  • 54
  • 1
    Take a look at http://socket.io/ for node.js. If you have to use PHP, you might be able to use something like Ratchet http://socketo.me/ – Cody Bonney Nov 15 '13 at 20:41
  • Unfortunately, I have a shared host, so I cannot install websockets. – Jeff Lamb Nov 15 '13 at 20:51
  • 1
    Are your only access privileges SFTP? Because if that's the case (and you're not allowed to run shell scripts), then the only options I can think of would be long polling (which http://stackoverflow.com/questions/333664/simple-long-polling-example-code has nice examples of) or periodic AJAX requests. – badcook Nov 15 '13 at 21:36
  • I have ssh (without root) and ftp access. My solution was periodic AJAX, but it looks like there might be workarounds to installing python libs without root that might work. – Jeff Lamb Nov 18 '13 at 21:08

0 Answers0