Learning jQuery

Learning jQuery $.ajax Options and Shortcut Methods

This course is out of date and does not reflect our standards or industry best practices. We now recommend you take the Complete Intro to Web Development, v3 course.

Check out a free preview of the full Learning jQuery course:
The "$.ajax Options and Shortcut Methods" Lesson is part of the full, Learning jQuery course featured in this preview video. Here's what you'd learn in this lesson:

Core ajax method is $.ajax which has a ton of options Walk-through of main ajax options: Not setting url will use current url. You can now set url using $.ajax(url, options) Example of collecting form data with $(form).serialize() dataType specifies what type of data you’ll get back (“json”, “html”, “text”, etc). “jsonp” dataType allows get data cross-domain (Twitter API, Flickr, etc). Karl demos API search tool and how to hack your own JSONP service using iframe. http://api.jquery.com/jQuery.ajax/ for more $.ajax options Audience asks, “do you see anything in the browser when $.ajax is called?” Karl explains you have to do use the response data to build HTML to see something $.ajaxSetup() globally configures all $.ajax settings

Get Unlimited Access Now