i wanted to implemant the reply button so it takes a value through get function and put that in the update textbox just like twitter!! is thier a toturial or article, or you could guide me the right way i can do this!!
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
My solution would be to build a link for reply, which has all the values it needs.
onClickjavascript comes to help, it reads the link variables and uses them for your textbox.Like, if you have a link –
post.php?replyto=username&othervariable=value, you use JavaScript (well, it can be jQuery or any other library too) to parse your URL, selectreplytovariable, and insert its value inside your textbox.But there are many other solutions out there. If you want to achieve this with PHP, then – when the link is clicked, reload page with variable passed, and
$_GETthis value, then insert it in textbox again.