Skip to content

Instantly share code, notes, and snippets.

View kylehill's full-sized avatar

Kyle Hill kylehill

  • Skylight Digital
  • Washington, DC
View GitHub Profile
@kylehill
kylehill / ajax_breakdown.js
Created April 9, 2012 15:17 — forked from ryanmcgrath/ajax_breakdown.js
$.ajax breakdown for cross-domain requests.
// An AJAX query is broken down like this...
$.ajax({
// This means we're going to pull data; if you're
// creating something new on the server, this'll be POST
type: "GET",
// This tells jQuery to use a cross-domain fetching trick
dataType: "jsonp",
// The BASE URL we want to query data from