Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Cloning Facebook "x new posts" feature

  • 06-10-2009 06:22PM
    #1
    Registered Users, Registered Users 2 Posts: 9,472 ✭✭✭


    On your homepage of Facebook, whenever there are new status updates posted by friends, it dynamically notifies you on your homepage and when you click the link, the new updates appear.

    facebooknewspost.jpg

    I regularly attend events where I offer live text updates on websites as the event progresses (eg: http://www.ladbrokeslive.com ) and my ability to use the term "live" is severely limited by the requirement of the user to refresh the page on a regular basis.

    The "Show X new posts" feature would be the perfect feature to deliver live content to visitors as well as cutting down on bandwidth by saving the need for refreshing the page.

    Are there any current open examples of such a script/feature?


Comments

  • Registered Users, Registered Users 2 Posts: 35,522 ✭✭✭✭Gordon


    Start by googling AJAX. It's a combination of javascript and sql stuff, very web 2.0 :)


  • Registered Users, Registered Users 2 Posts: 9,472 ✭✭✭AdMMM


    I'm not that new to the game :). I had hoped that this particular feature would be very desirable and that someone would have created a class for it :)


  • Registered Users, Registered Users 2 Posts: 128 ✭✭johnny_rambo


    Maybe Ajax polling using jQuery and setInterval might be what you are looking for.
    It's pretty straight forward to do if you have some knowledge of jQuery.


  • Registered Users, Registered Users 2 Posts: 35,522 ✭✭✭✭Gordon


    Didn't realise you knew about ajax AdMMM, you can never tell unless you tell us in the OP!


  • Registered Users, Registered Users 2 Posts: 2,011 ✭✭✭colm_c


    Very straight-forward to create something like this in jQuery, it's also possible to reload just the top section of the page is required using similar methods, instead of just displaying a link to load the new content.

    If you know jQuery and a back end language you could probably knock something together in about 30 minutes, I've done some similar stuff for a client before.

    It's also not really something that would be all that generic, which is probably why there is no class/jquery plugin for it (that I know of), as it all depends on how you would poll and what the server request and response mechanisms would be.


  • Advertisement
Advertisement