News for hackers. Stuff that matters.
Re:Show a real-time user count without any client-side Javas... by rabidsnail on Saturday July 28, 2012 @10:42PM (#4307325)
You could do this more efficiently with an iframe. Leave the connection open until there's an update and then send a meta refresh tag.
Re:Show a real-time user count without any client-side Javas... by dag11 on Saturday July 28, 2012 @11:20PM (#4307415)
Yeah, as ceol said, that'd essentially be polling. Plus, if you can place an iframe, you can almost always place Javascript which makes something with ajax or socket.io somewhat more suitable.

But there are many places on the internet where you can only link an image, such as in sites with markdown, bbcode, or hotlinked avatars.

Re:Show a real-time user count without any client-side Javas... by ceol on Saturday July 28, 2012 @11:18PM (#4307408)
Wouldn't that be accomplishing the same thing— since M-JPEG keeps the connection open— except you're forcing the client to send another request when they refresh?