params: { ajax_body : 1, markup : 1 },
success : function(res) {
// data is raw...
-
+ function asyncInnerHTML(HTML, callback) {
+ var temp = document.createElement('div'),
+ frag = document.createDocumentFragment();
+ temp.innerHTML = HTML;
+ (function(){
+ if(temp.firstChild){
+ frag.appendChild(temp.firstChild);
+ setTimeout(arguments.callee, 0);
+ } else {
+ callback(frag);
+ }
+ })();
+ }
+ t.dom.innerHTML = '';
+ asyncInnerHTML(res.responseText, function(fragment){
+ t.dom.appendChild(fragment); // myTarget should be an element node.
+ })
(function() {
var nel = t.dom.cloneNode(false);