dbadke
12 Feb 2007, 11:13 AM
I had set
YAHOO.ext.UpdateManager.defaults.loadScripts = true; before creating any layouts.
One of my content panels has a form, which gets updated with:
collectBody.getUpdateManager().formUpdate(collectForm, url, false, this.saveCollectEnd.createDelegate(this));
If the XHR fails (eg: the URL is wrong and returns a 404), the callback function is called, with requestOK=false. If it succeeds, the callback is not called at all. Remove the loadScripts=true line, and the callback is called on success, with requestOK=true.
The problem seems to be in UpdateManager.js (processSuccess), where the callback is handled differently depending on loadScripts:
if(this.loadScripts){
this.renderer.render(this.el, response, this,
this.updateComplete.createDelegate(this, [response]));
}else{
this.renderer.render(this.el, response, this);
this.updateComplete(response);
}
I'm not sure why this fails, but I can confidently say that it does!
YAHOO.ext.UpdateManager.defaults.loadScripts = true; before creating any layouts.
One of my content panels has a form, which gets updated with:
collectBody.getUpdateManager().formUpdate(collectForm, url, false, this.saveCollectEnd.createDelegate(this));
If the XHR fails (eg: the URL is wrong and returns a 404), the callback function is called, with requestOK=false. If it succeeds, the callback is not called at all. Remove the loadScripts=true line, and the callback is called on success, with requestOK=true.
The problem seems to be in UpdateManager.js (processSuccess), where the callback is handled differently depending on loadScripts:
if(this.loadScripts){
this.renderer.render(this.el, response, this,
this.updateComplete.createDelegate(this, [response]));
}else{
this.renderer.render(this.el, response, this);
this.updateComplete(response);
}
I'm not sure why this fails, but I can confidently say that it does!