Not sure how to make this PHP/Ajax feature
Posted: Wed Jul 23, 2008 3:17 pm
Hi. I am trying to implement something like the comment system on digg, where comment can not only be posted, but also rated by other people. My question is more about the structure, or approach of the code.
How can I design this kind of system?
What would be the best approach to take here? Every comment should have an ID i suppose... I also looked with firebug into Digg code, and the 'bury' image has HTML code:
<img height="18" width="18" alt="" id="bury-c17145374" src="/img/c-bury.png"/>
I was expecting code like onClick="voteUp(id=c17...)", or something similar. What kind of approach is that?
How can I design this kind of system?
What would be the best approach to take here? Every comment should have an ID i suppose... I also looked with firebug into Digg code, and the 'bury' image has HTML code:
<img height="18" width="18" alt="" id="bury-c17145374" src="/img/c-bury.png"/>
I was expecting code like onClick="voteUp(id=c17...)", or something similar. What kind of approach is that?