Hacker News new | ask | show | jobs
by dpritchett 4966 days ago
Yep, this page handled entirely client-side, with some analytics JS on top for good measure:

    setInterval(
      function() {
        $.getJSON(
          "https://graph.facebook.com/mittromney",
          function(results) {
            console.log("Mitt Romney Like Count: " + results.likes)})},
      5000)
Edit: Love the idea, glad the page is out there! Great conversation starter.
1 comments

Haven't tried it, but isn't that blocked by Javascript's cross-domain protection?
jQuery fixes that.