Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

AJAX Comments with jQuery, PHP, and MySQL

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
4,797
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 5, 2010

This time around, we will be making a better Comments box where the comment is loaded onto the page when submitted.

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (WebDevFTW)

  • can this be done with a cool fade in effect?

    what should I change to make this happen?

    btw tnx for tut ... very usefull

  • @tilda1111 It's pretty easy, when you append a new comment, create the new element and use the fadeIn effect. My best recommendation for this would to be the jQuery documentation on the fadeIn method. ;)

  • Pretty easy to follow, and well done!

    Just one thing.. this isn't really working with JavaScript disabled, is it?

  • @miXn Well, yeah. If Javascript is disabled, Ajax will not work since it's a javascript tool.

  • @WebDevFTW Sure, I know.. a commenting-system should also work with JS disabled.. just using pure PHP, and uploading the commenting after a site refresh.

  • @miXn The point of this tutorial was to show AJAX functionality. I used a commenting system to make a quick tutorial to show AJAX. My main focus for the tutorial was to show AJAX, not a PHP tutorial.

see all

All Comments (13)

Sign In or Sign Up now to post a comment!
  • Nice one

  • how will i know whn u have released a better code with latest php standards?

  • @WebDevFTW great ty :)

  • Need Assistance please with the .$post( 'data.php' { nombre:nombre, email:email, telefono:telefono, mensaje:mensaje} function(response) { $("#commentArea").load("pull.p­hp"); $("#nombre").val("");$("#email­").val(""); $("#telefono").val("");$("#men­saje").val(""); } ) return false;

    Firebug says missing ")" after argument list in function(response) Could you please let me know if I did the $.post wrong? Or do you have the code files availabe for downloading, to check my error?

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more