Products

Recent Search Terms

NETTUTS.com: Asynchronous Comments with PHP, jQuery, and JSON

The NETTUS.com site has a new tutorial posted today looking at the combination of PHP, jQuery and the JSON format for messages to create a "more web 2.0" version of the traditional comment form.

In this article, we're going to look at how we create a simple but effective means of capturing and displaying visitor comments using a blend of jQuery, PHP and JSON. In the public forum that is the blogosphere, the ability to capture and display visitor comments on your blogs can give you instant feedback and opinions from the people that matter most '" those that read your blog.

Their script (check out the demo here) acts as an interface between a MySQL database and the HTML front end. Both the display and submission of the comments are handled by Javascript with the submission being handled by the ajax method in jQuery.

You can also download the source here.

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>