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 ? Quote Link to comment 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 Quote Link to comment 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/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.