Posted by: prajapatinilesh | May 14, 2012

jquery ajax call

// Include jquery library. <script src=”jquery file path”>

<div id=”facebook_feed_display_div” style=”height:300px;width:420px;overflow:auto;”></div>

function callFacebookFile() {
$(“#facebook_feed_display_div”).html(‘<span style=”color:red;font-size:13pt”>Loading Please Wait….!</span>’);

var urlFacebookCall = ‘facebook_call.php’;

var parameterString = ‘facebookAccountId=<?=$facebookAccountId?>’;
parameterString += ‘&param2=<?=$param2?>’;


//url: urlFacebookCall,
//data: parameterString,

success:function(result) {
error: function (xhr, status, error) {
}//End of function callFacebookFile



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s


%d bloggers like this: