I have a while loop that loops through the comments for a particular blog and displays them. Everything works great there, and it shows every comment related to the blog.
I want users to be able to reply to comments posted, so I have this form that pops up (using javascript) with a text box when someone clicks "reply" under the comment. I just added this Reply link and what happens is that when the link is clicked it only shows the reply box under the first comment, no matter what reply link was clicked (for ex: if it was clicked on the tenth comment, it'll still show under the first comment as a reply to the first comment. If I remove the reply link and just display the reply boxes, they all show up with the right commentid under the appropriate comment. It's just when I have the link that causes the problem.
How can I get the reply link to pull up the reply box under the appropriate comment and associated to the appropriate commentid?
Hope this makes sense, any help would be appreciated!



Reply With Quote

Bookmarks