开发者

twitter like reply button using jquery and php get function?

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 r开发者_如何学Goight way i can do this!!


My solution would be to build a link for reply, which has all the values it needs. onClick javascript 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, select replyto variable, 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 $_GET this value, then insert it in textbox again.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜