开发者

Twitter like Form Submission using Ajax or Jquery

I need a simple example o开发者_如何转开发f form submission very similar to Twitter. How you type in a comment and click update and without the whole page refreshing, the comment gets added below on top of the rest of the comments. I would prefer something in Jquery as my PHP project is already integrated with it.


See this pleae.


I wrote an example a while ago that more-or-less covers that. Getting data from a form is basic DOM, and you'll want to switch out the GET to POST since you are sending data rather then just requesting it.


I found these links for you:

jQuery plugin: Simplest Twitter-like dynamic character count for textareas and input fields

http://cssglobe.com/post/7161/jquery-plugin-simplest-twitterlike-dynamic-character-count-for-textareas

Or maybe

http://www.ajaxupdates.com/twitter-like-search-with-jquery-and-ajax/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜