UnknownPlayer Posted October 11, 2010 Share Posted October 11, 2010 Is there any example code for like, dislike button for my php code, to save likes and dislikes from members on mysql, but to dont refresh page when clicked on Like, i mean to use java ? Link to comment https://forums.phpfreaks.com/topic/215628-like-dislike-button-javascript/ Share on other sites More sharing options...
BlueSkyIS Posted October 11, 2010 Share Posted October 11, 2010 you're heading toward ajax (javascript + php). onclick event fires javascript to connect to php script on server, updating like/dislike, then javascript refreshes the html content. http://www.google.com/search?client=safari&rls=en&q=ajax&ie=UTF-8&oe=UTF-8 Link to comment https://forums.phpfreaks.com/topic/215628-like-dislike-button-javascript/#findComment-1121137 Share on other sites More sharing options...
the182guy Posted October 11, 2010 Share Posted October 11, 2010 Have a look at the JQuery API for Ajax, it's really easy to use: http://api.jquery.com/jQuery.get/ Link to comment https://forums.phpfreaks.com/topic/215628-like-dislike-button-javascript/#findComment-1121174 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.