473,474 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how to make the reply for existing comments?

4 New Member
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
6 7814
omerbutt
638 Contributor
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
marimuthuit
4 New Member
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
marimuthuit
4 New Member
<?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
marimuthuit
4 New Member
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
638 Contributor
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
ofoegbu
1 New Member
great really wondering how to get through this
Apr 30 '15 #7

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

Similar topics

0
by: Björn Lindström | last post by:
I'm considering using the ElementTree Tidy HTML Tree Builder for a web spidering program I'm developing. However, my program must be able to extract certain information from HTML comments. ...
3
by: Gunnar Vøyenli | last post by:
Hi (SQL Server 2000) I have an existing table (t) with a column that is NOT an identity column (t.ID), but it has manually inserted "row numbers". I want to make this column become an identity...
10
by: Bob | last post by:
Here's what I have: void miniVector<T>::insertOrder(miniVector<T>& v,const T& item) { int i, j; T target; vSize += 1; T newVector; newVector=new T;
3
by: Gary James | last post by:
I'm making a C# library module that has methods & properties that I've commented. I would like these comments to appear in the object browser when the library is used by another .NET application....
2
by: Dave | last post by:
I have an existing asp page that I would like to upgrade/convert to aspx. It gets a million or two hits per day, so I'm surmising that at a minimum I would benefit from compilation and the...
2
by: Bob | last post by:
I don't know if this is doable but sure very helpful. Is there a way to make the XML comments or the Description attribute on the on the WS to show up in the proxy class generated by VS.NET. ...
3
by: craig | last post by:
Given two existing but different classes OldA and OldB (that can not be made to derive from any new base class); is there a way to make them both "observer" objects so that they can be put in one...
98
by: tjb | last post by:
I often see code like this: /// <summary> /// Removes a node. /// </summary> /// <param name="node">The node to remove.</param> public void RemoveNode(Node node) { <...> }
2
by: trullock | last post by:
Hi, Ive installed the ASP.NET AJAX extensions and ive set up a simple example, however its not doing anything asynchronously, its always posting back... Could this be something to do with the...
5
helimeef
by: helimeef | last post by:
I designed a little PHP/MySQL forum (just for fun), and I have commenting set up and top threads on the homepage and whatnot. I'm relatively new to PHP, and this is the biggest project I've done, but...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.