Jquery with ajax

[b]I want to know jquery and ajax concept…
please give me example of Ajax success function with php file
Example:

$.ajax({url:“demo_test.txt”,success:function(result){
});

[/b]

Are you looking for something like this?
[php]
$.ajax({
data: $this.serialize(),
type: “POST”,
url: “/phpfile.php”,
success: function(result) {
if (result == ‘true’) {
alert(“file was successful”);
} else {
alert(“file was unsuccessful”);
}
},
error: function() {
alert(“something very bad went wrong => there’s a bug in the file”);
}
});[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service