Level 22 Level 24
Level 23


10 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

explain the purpose of the $(...).load() method
sends an XHR request via get or post, depending on the arguments passed, loads the results into each element of the wrapped set
explain the params argument in $(...).load(url, params, callback) and its effect on the request type
an optional string, array, or object\n\nif omitted, GET method is used\n\nas a string, it is a query string and GET is used\n\nas an array, each element is an object formatted: {name: "name", value: "the …
explain the callback argument in $(...).load(url, params, callback)
optional\n\nIt receives two arguments: response text (i.e. 'success'), and the XHR instance\n\ninvoked once for each element in the wrapped set with 'this' equal to DOM element being iterated
place the arguments into the URL parameter using encodeURIComponent() or $.param()
explain how to force $('...').load() method to use the GET method when passing arguments
put a space and a selector onto the url, for example: $('...').load("/xhr.php div");
explain how to filter the results of $('...).load() so that only div elements are inserted into the wrapped set
what method can be used to prepare form data for use as an argument to jQuery XHR methods?
$(...).serialize()\n\nAny form elements in the wrapped set are used. \n\nIf forms exist in the wrapped set, all their elements are used.
explain the purpose of $(...).serializeArray()
returns form elements as array of {name: ..., value: ...} objects suitable for use with jQuery XHR methods
what jQuery utility method executes a GET request?
query string, array of name/value objects, or JS object
what are the valid data types for parms in:\n\n$.get(url, parms, callback, type)
method called when $.get() returns
explain the callback parm in:\n\n$.get(url, parms, callback, type)