h = h.responseText;
self.html(h).find("script").each(function(){
try {
- $.eval( this.text || this.textContent || this.innerHTML );
+ $.eval( this.text || this.textContent || this.innerHTML || "");
} catch(e){}
});
if(f){f(h);}
// Evaluate the scripts AFTER this (so you can allready modify the new HTML!)
el.html(sResult).find("script").each(function(){
- try { $.eval( this.text || this.textContent || this.innerHTML ); } catch(e) { }
+ try { $.eval( this.text || this.textContent || this.innerHTML || "" ); } catch(e) { }
});
// And call the callback handler :)