, IE dom. , "domready" innerHTML. :
new Ajax("someurl", {
method: "get",
evalScripts: true,
onComplete: function() {
$("someid").setHTML(this.response.text);
}
}).request();
, , evalScripts . , script, , , ?
1.11:
onComplete: function(){
if (this.options.update) $(this.options.update).empty().setHTML(this.response.text);
if (this.options.evalScripts || this.options.evalResponse) this.evalScripts();
this.fireEvent('onComplete', [this.response.text, this.response.xml], 20);
},
, : onComplete, :
update: $('somediv'),
evalScripts: true
. , :
new Ajax("someurl", {
method: "get",
onComplete: function() {
$("someid").setHTML(this.response.text);
this.evalScripts();
}
}).request();