Sunday, January 15, 2012

Quick Left | jQuery 1.5 Hotness PART 2

Quick Left | jQuery 1.5 Hotness PART 2: " // Create our deferred
    var dfd = $.Deferred();
    
    // - Make a request and resolve our deferred onSuccess
    // - You can get super fancy here with $.ajax and explicitly
    // set fail or rejected states
    $.get(
        thing.url,
        function() { dfd.resolve(); },
        thing.data_type
    );"

'via Blog this'