ajax,
functions,
javascript,
Jquery
Why We Forgot to Use These Jquery Functions
While Using Jquery AJAX Functions to post and get the parameters to certain URLs, We always forgot this kind of methods are there in jquery and it will reduce our code structure and size.
Send form data using Ajax requests
Alert the results from requesting test.php with an additional payload of data (HTML or XML, depending on what was returned).
Request the test.php page and send some additional data along (while still ignoring the return results).
jQuery.post()
Description: Load data from the server using a HTTP POST request.
Examples:
Request the test.php page, but ignore the return results.
|
Request the test.php page and send some additional data along (while still ignoring the return results).
|
Pass arrays of data to the server (while still ignoring the return results).
|
Send form data using Ajax requests
|
Alert the results from requesting test.php (HTML or XML, depending on what was returned).
|
Alert the results from requesting test.php with an additional payload of data (HTML or XML, depending on what was returned).
|
jQuery.get()
Description: Load data from the server using a HTTP GET request.
Examples:
Request the test.php page, but ignore the return results.
|
Request the test.php page and send some additional data along (while still ignoring the return results).
|
Pass arrays of data to the server (while still ignoring the return results).
|
Alert the results from requesting test.php (HTML or XML, depending on what was returned).
|
Alert the results from requesting test.cgi with an additional payload of data (HTML or XML, depending on what was returned).
|
0 comments