Jump to content

Facebook like Older Post Script


never_rain

Recommended Posts

I am working on a website where I have comments posted by users. I want to display 25 comments and if there are more, it will show a linke Older Posts similar to Facebook. Once I click on that, it will list down the next 25 comments and so on. This is something we can see in Facebook. Do you have any idea where I can find this script. I did search on google but couldn't find it. Probably bad keyword selection.

 

any ideas for the resource.

 

Thanks,

 

Faisal

Link to comment
https://forums.phpfreaks.com/topic/210186-facebook-like-older-post-script/
Share on other sites

What you're essentially looking for is to couple thorpe's idea with onlyican. You'll need to run an asynchronous javascript request which would run the query and output the results as either xml or json. Your javascript can then deal with it as you want.

 

I'd advise you to look at a javascript library such as jQuery, Dojo or MooTools. Their implementations of AJAX are cross browser. They also have tutorials on how to use them in their documentation.

  • 3 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.