473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

how to make the reply for existing comments?

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 7812
omerbutt
638 512MB
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
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
<?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
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 512MB
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
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
0
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...

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.