By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,197 Members | 1,151 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,197 IT Pros & Developers. It's quick & easy.

how to make the reply for existing comments?

P: 4
i used button for reply action.when click the reply the text box will com using ajax.the ajax function is called through button as i said earlier. but i want to post my reply for corresponding comments so any one plz help to how to pass the id through button.
Nov 1 '11 #1
Share this Question
Share on Google+
6 Replies


omerbutt
100+
P: 638
hi marimuthuit,
assign the id at the time when you show the comment the message field is populating the text inside the textarea / div to which you need to reply you need to pass the id in the onclick function as a parameter
Expand|Select|Wrap|Line Numbers
  1. <input type='button' name='reply' id='reply' value='Reply' onclick='replyComment("<?php echo $message_id?>")' />
  2.  
Nov 2 '11 #2

P: 4
Thank you for reply.....
You Are send this code by using of html. But i am using PHP and Ajax. So this code shows Error Msg. How can i convert this code into PHP. Reply me.
Nov 2 '11 #3

P: 4
<?php
echo "<td><input type='button' name='reply' id='reply' value='Reply' onclick='call_login(".$row['sno'].")' /></td></br>";
?>
This code contains error.
Nov 2 '11 #4

P: 4
function call_login(int)
{
var sno = window.document.f1.reply.value;
var url = "action.php?sno="+sno;
postRequest(url);
}


This is my Ajax Function. How can i send $sno into action.php page.
Nov 2 '11 #5

omerbutt
100+
P: 638
hi try this
Expand|Select|Wrap|Line Numbers
  1. <?php
  2. echo "<td><input type='button' name='reply' id='reply' value='Reply' onclick='call_login(".$row[\'sno\'].")' /></td></br>";
  3. ?>
  4.  
Nov 10 '11 #6

P: 1
great really wondering how to get through this
Apr 30 '15 #7

Post your reply

Sign in to post your reply or Sign up for a free account.