Revision: 43612
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 28, 2011 01:30 by crypticsoft
Initial Code
$.when( $.getJSON('/some/data/'), $.get('template.tpl') ).then(function( data, tmpl ){ $( tmpl ) // create a jQuery object out of the template .tmpl( data) // compile it .appendTo( "#target" ); // insert it into the DOM });
Initial URL
http://stackoverflow.com/questions/4869609/how-can-jquery-deferred-be-used
Initial Description
Initial Title
Deferred with $.when help and template example
Initial Tags
Initial Language
jQuery