• Live updating websites?
    13 replies, posted
So, im very curious recently. Facebook does some what of live updating with a couple JS calls to PHP. But what does the public think, of a live updating 4chan or reddit?
What do you mean by live updating?
[QUOTE=Banana Lord.;45160940]What do you mean by live updating?[/QUOTE] The page updates live without you having to reload it. So if you used reddit as an example, you'd see the ratings moving up/down and comments appearing without refreshing the page.
4chan already has live updating threads, with Reddit it would not work as content would move around constantly while you're trying to click things
[QUOTE=KmartSqrl;45160976]The page updates live without you having to reload it. So if you used reddit as an example, you'd see the ratings moving up/down and comments appearing without refreshing the page.[/QUOTE] I couldn't tell if he was referring to live updating content or live code changes. Thanks.
What about live updating facepunch?
[QUOTE=NixNax123;45161599]What about live updating facepunch?[/QUOTE] labpunch already does that
Facebook's version is terrible, sometimes it just stops refreshing, that or it refreshes really slowly, but usually I find myself manually reloading Facebook more as it will come up with new content
What do you think about load() ? [url]http://api.jquery.com/load/[/url]
[QUOTE=dexon;45196982]What do you think about load() ? [url]http://api.jquery.com/load/[/url][/QUOTE] What is there to think?
is it a good practice to use it or is there a better way... idk ? (for live update i meant)
[QUOTE=dexon;45198278]is it a good practice to use it or is there a better way... idk ? (for live update i meant)[/QUOTE] Not sure what exactly you mean by "live update" as it's kind of vague, but pjax sounds sort of similar to jQuery's load method. [url]http://pjax.heroku.com/[/url]
[QUOTE=dexon;45198278]is it a good practice to use it or is there a better way... idk ? (for live update i meant)[/QUOTE] Generally you fetch JSON (or XML if you're a masochist) via AJAX and build the DOM in Javascript. Most big sites use a framework like Angular or Ember, though.
[QUOTE=supersnail11;45198329]Generally you fetch JSON (or XML if you're a masochist) via AJAX and build the DOM in Javascript. Most big sites use a framework like Angular or Ember, though.[/QUOTE] We are doing something exactly like that. Which if im not mistaken Lab Punch runs on that same system.
Sorry, you need to Log In to post a reply to this thread.