Curious how to set an action through the ajax call
Code:
function vote(id, rate, img, event) {
new Ajax.Request(MyAjax.ajaxurl, {
method: "post",
parameters: "rate=" + rate + "&id=" + id,
onSuccess: function(transport) {}
});
}
need something along the lines of jquery way of doing data: {action: my_action},