Show a real-time user count without any client-side Javascript
1–10 of 24 posts
Re: Show a real-time user count without any client-side Javascript
#2You 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 Javascript
#3"Without client side javascript"...
"using Backbone.js"
?
Re: Show a real-time user count without any client-side Javascript
#4"Without client side javascript"... "using Backbone.js" ?
Node.js. Server-side.
All that's required on the client is this:
And you're up and running.
Re: Show a real-time user count without any client-side Javascript
#5"Without client side javascript"... "using Backbone.js" ?
Backbone.js can be used server-side with node.js.
Re: Show a real-time user count without any client-side Javascript
#6You could do this more efficiently with an iframe. Leave the connection open until there's an update and then send a meta refresh tag.
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?
Re: Show a real-time user count without any client-side Javascript
#7You could do this more efficiently with an iframe. Leave the connection open until there's an update and then send a meta refresh tag.
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 Javascript
#8Re: Show a real-time user count without any client-side Javascript
#9At least with the JavaScript version you're serving actual text which can be read by screen readers, copy/pasted etc.
Re: Show a real-time user count without any client-side Javascript
#10It's worth noting that the author of this blog is a 17 year old self-taught hacker. Highly impressive.