1

I'm trying to make "like" buttons on my site which basically submit a form without refreshing the entire page as it does now. I was thinking of using iframes, but I'm not sure if that is a great idea. I'm not sure where to look or what to search, but I can't seem to find any tutorials. Where should I look?

Jonathan Ong
  • 19,927
  • 17
  • 79
  • 118
  • 1
    you should look up things like [AJAX](http://en.wikipedia.org/wiki/Ajax_(programming)) and perhaps [jQuery](http://en.wikipedia.org/wiki/Jquery). – ObscureRobot Oct 29 '11 at 04:53

1 Answers1

2

Check out this tutorial. It uses JQuery and Ajax to create the kinds of buttons you're looking for. It uses Twitter's "Follow/remove" idea as an example but that is virtually identical to Like/Unlike at the client. And here's an SO post with a number of JQuery-based solutions.

Community
  • 1
  • 1
Paul Sasik
  • 79,492
  • 20
  • 149
  • 189