Upgrade to Pro — share decks privately, control downloads, hide ads and more …

DocumentUp @ JSMontreal

jeromegn
February 15, 2012

DocumentUp @ JSMontreal

jeromegn

February 15, 2012
Tweet

More Decks by jeromegn

Other Decks in Programming

Transcript

  1. JSONP $.ajax({ url: "http://documentup.com/compiled", dataType: "jsonp", data: { content: "#

    test", name: "Test JSONP!" }, success: function(resp){ // `status` is always provided if (resp.status == 200) { // Write to your document document.open(); document.write(resp.html); document.close(); } } });