Friends This is the code for Reload facebook twitter and google plus like icons after ajax request call
Below is sample ajax request is given for reloading social icons like facebook, googleplus and twitter
after JavaScript ajax call.
$.ajax({
url: "reload-content.html",
cache: false,
success: function(html){
$("#results").html(html);
// reload twitter icon
twttr.widgets.load();
// reload google plus icon
gapi.plusone.go();
// facebook like button refresh
try{
FB.XFBML.parse();
}catch(ex){}
// end
}
});
As per above code you have to add above mentioned code after ajax call success.
If you want to learn MVC basics than below is link for learning MVC from basics.
Click to Learn MVC
I hope you like this blog.
Below is sample ajax request is given for reloading social icons like facebook, googleplus and twitter
after JavaScript ajax call.
$.ajax({
url: "reload-content.html",
cache: false,
success: function(html){
$("#results").html(html);
// reload twitter icon
twttr.widgets.load();
// reload google plus icon
gapi.plusone.go();
// facebook like button refresh
try{
FB.XFBML.parse();
}catch(ex){}
// end
}
});
As per above code you have to add above mentioned code after ajax call success.
If you want to learn MVC basics than below is link for learning MVC from basics.
Click to Learn MVC
I hope you like this blog.