$.ajax({name:value, name:value, ... })
$.ajax({url: "demo_test.txt", success: function(result){
//
}});
$.get(URL,queryStringData,function(serverReturnData,status,xhr),dataType)
$.get("test.php");
$.get("test.php", { name:"Donald", town:"Ducktown" });
$.get("test.php", { 'colors[]' : ["Red","Green","Blue"] });
$.get("tryit.asp", function(serverReturnData, status){ });
$.post(URL,queryStringData,function(serverReturnData,status,xhr),dataType)
$.post("test.php");
$.post("test.php", { name:"Donald", town:"Ducktown" });
$.post("test.php", { 'colors[]' : ["Red","Green","Blue"] });
$.post("tryit.asp", function(serverReturnData, status){ });
$(selector).getJSON(url,queryStringData,success(serverReturnData,status,xhr))
$.getJSON("demo_ajax_json.js", function(serverReturnData){});
$(selector).getScript(*url,success(response,status))
$.getScript("demo_ajax_script.js");
personObj = new Object();
personObj.firstname = "John";
personObj.lastname = "Doe";
//$.param(personObj)
//firstname=John&lastname=Doe
No comments:
Post a Comment