jQuery AJAX get() Method
ExampleChange the text of a div element using an AJAX GET request:
Try it yourself » |
Definition and Usage
The get() method is used to perform an AJAX HTTP GET request.
Syntax
| $(selector).get(url,data,success(response,status,xhr),dataType) |
| Parameter | Description |
|---|---|
| url | Required. Specifies the url to send the request to |
| data | Optional. Specifies data to send to the server along with the request |
| success(response,status,xhr) | Optional. Specifies the function to run if the request
succeeds Additional parameters:
|
| dataType | Optional. Specifies the data type expected of the server response. By default jQuery performs an automatic guess. Possible types:
|
[출처] http://www.w3schools.com
'프로그램&DB > AJAX' 카테고리의 다른 글
| jQuery AJAX $.getScript() Method (0) | 2011.08.23 |
|---|---|
| jQuery AJAX $.getJSON() Method (0) | 2011.08.23 |
| jQuery AJAX ajaxSuccess() Method (0) | 2011.08.23 |
| jQuery AJAX ajaxStop() Method (0) | 2011.08.23 |
| jQuery AJAX ajaxStart() Method (0) | 2011.08.23 |
jQuery AJAX Methods