I am essentially making it so when you click on a button to \"vote up\"
at the moment i have
clients.php
You have scoped out the methods.
Instead you can attach them to windows to be accessible from any place.
window.voteUp = function() { $.get("voteup.php"); return false; } window.voteDown = function() { $.get("votedown.php"); return false; }