AJAX and JS for LIKE Button

phmaster

New Member
I'm trying to learn how make an AJAX script for a LIKE button, on my website. I have the following questions:if i'm sending 1 variable.... id.. I do this\[code\]data: "action=vote_up&id="+(this).attr("id")",\[/code\]is this syntactically correct if i'm sending two variables id and id1 ?\[code\] data: "action=vote_up&id="+(this).attr("id")&id1="+(this).attr("id1")",\[/code\]2) What goes into the href attribute? The php page or the AJAX?\[code\]<a href =""><img scr="like.png"></a>\[/code\]3) which is run first.. The php page or the AJAX.4) Is it mandatory for me to use jQuery or Pure Javascript for running AJAXthanks for your time and patience. I most appreciate it.
 
Back
Top