GMgKe586q6suSQnyqZLlGCooeWM

Pages

Search

Wednesday, December 22, 2010

jQuery Ajax - Save And Receive Data

Here's a code on how to send some data to the server and then notify the user that the saved data has completes:

$.ajax({
    type: "POST",
    url: "some.php",
    data: "name=lady&city=ny",
    success: function(msg){
        alert('Data saved: '+msg);
         }
});
Share/Bookmark

No comments:

Post a Comment