Pages

Sunday, 13 October 2013

Facebook Wall Script

Few days back i have posted one lesson Comment system using Jquery & Ajax now i have used JQuery latest 1.10.2 version and replaced old events to new events and added few features like wall status box with that you can give your status and see the post and you can give the comments to the post and you can delete the comment as well as post's also let's see how it will do and how it will work.

Javascript

Add the bellow code in index.php inside the <HEAD> tag. here i have used jquery latest version after using this i have faced some problem with .live() function it is not binding live data after some research i have found the solution for this .live() function doesn't work from 1.7.2 to till so i replaced the .live() function to .on().

posts.php

this file is to display the posts and bind the live data into #updatepost id in index.php file and here i added comment box to give the comments to the post and delete the posts and comments also.

.addcomment button is to toggle the comment box

#loadcomment Id is to display live comment data.
.comBtn button is to bind live the comment data into .comdisplay in comment.phpfile
.delete class is to delete the posts live data from delete.php file.