Facebook Style TextArea with Wall Posting Script using jQuery PHP and Ajax.

Written By: Zeeshan Rasool  |  Posted In: AJAX, Facebook, JQuery, PHP, Web Development

Here is a script for you to create facebook wall style post inserting techniques and expandable text area like facebook. I have used jquery-elastic
and watermarking plugin of jquery to create this awesome effects.

Fresh and more enhanced facebook style posting and comments system

Basically, i here is a simple text area example with ajax posting in facebook style.

Table Structure:

CREATE TABLE `facebook_posting` (
  `p_id` int(11) NOT NULL auto_increment,
  `f_name` varchar(50) NOT NULL,
  `post` varchar(255) NOT NULL,
  `f_image` varchar(50) NOT NULL,
  `date-created` datetime NOT NULL,
  PRIMARY KEY  (`p_id`)
)

Javascript Code: Ajax Call with Watermarking Text Area

$(document).ready(function(){	

	$('#shareButton').click(function(){
		var a = $("#watermark").val();
		$.post("posts.php?value="+a, {
		}, function(response){
			$('#emailInfo').fadeOut();
			$('#posting').html(unescape(response));
			$('#posting').fadeIn();
		});
	});
	$('textarea').elastic();

	jQuery(function($){
	   $("#watermark").Watermark("What's on your mind?");
	});
	jQuery(function($){
	   $("#watermark").Watermark("watermark","#369");
	});
	function UseData(){
	   $.Watermark.HideAll();
	   //Do Stuff
	   $.Watermark.ShowAll();
	}
});

Text Area HTML:


If you enjoyed this post, please consider leaving a comment below or subscribing to the RSS feed to have future articles delivered to your feed reader. You can also follow us on Facebook or Twitter @99Points


Zeeshan Rasool is the founder and editor of this blog. Beside this, he is an experienced PHP web developer and freelancer. He loves to create best and interactive web apps. You can follow him at twitter @99_Points and facebook OR drop an email at 99points.info@gmail.com

56 to “Facebook Style TextArea with Wall Posting Script using jQuery PHP and Ajax.”

  • Maribel Mcdoniel October 15, 2011 at 12:52 am

    Hey there, You have done a great job. I’ll definitely digg it and individually suggest to my friends. I’m sure they will be benefited from this web site.

  • sadfsdf December 15, 2011 at 2:26 pm

    fsdfsd

  • d June 9, 2012 at 2:54 am

    ddd

  • asa August 15, 2012 at 3:52 am

    dsasda

  • elson August 21, 2012 at 3:28 pm

    cools…

  • Tablica jak na Facebook | Klocek Blog | Darmowe i legalne skrypty PHP, AJAX, jQuery January 19, 2013 at 11:20 pm

    [...] Zobacz Demo Pobierz Skrypt [...]

Post comment


Email Subscriber!

Be the first to know about new updates


Advertisement

Categories

Popular post

Recommend