Intro to jquery ajax
In this lesson we’ll begin to consider ajax jquery. We’ll consider five useful functions , most of it are special cases of ajax method. Ajax method will be considered in next lesson.
Shortly about considered methods:
- jQuery.get (https://api.jquery.com/jquery.get/) – this method send HTTP GET request.
- jQuery.post (https://api.jquery.com/jquery.post/) – this method send HTTP POST request.
- jQuery.getJSON (https://api.jquery.com/jquery.getJSON/) – this method loads JSON data from the server with GET HTTP method
- jQuery.parseJSON (https://api.jquery.com/jquery.parseJSON/) – takes JSON string and returns javascript value(string/number/object/boolean). If you use jquery version 3, you must notice,
this method is deprecated from this jquery version. - jQuery.parseXML (https://api.jquery.com/jquery.parseXML/) – parses xml string and returns xml document
0 Comments