could a loadscript optional tag be added to the setcontent method of tabpanelitem?
hey jack, it wasn't in there :?:
It was simple to add it though...
original from RC1
setContent : function(content){
this.bodyEl.update(content);
},
modification
setContent : function(content, loadScripts){
this.bodyEl.update(content, loadScripts); TabPanel.js:: closable True to allow this TabPanelItem to be closable (defaults to {Boolean} loadScripts true to look for and load scripts */ setContent : function http://docs.huihoo.com/extjs/1.1.1/docs/output/TabPanel.jss.htmlHOME |
},
Haha, I just went to add it for you and it's already there. :D
Maybe I'm just going about it the wrong way and can use getEl().update... I'm using basicdialog to do a login form. If the login is successful it would return some javascript that would rebuild sections o the page for a logged in user, and if the login failed (bad username/password combo) it just redisplays the form with an error message included.
however you said it's already there.. is that in a currently downloadable version, or what's running live on your site.. .or?
login : function() {
submitButton.disable();
YAHOO.util.Connect.setForm(document.getElementById ('logiForm'));
var loginSuccess = function(o) {
loginForm.setContent(o.responseText);
if ( document.getElementById('logiForm') )
{
YAHOO.util.Connect.setForm(document.getElementById ('logiForm'));
submitButton.enable();
}
};
var loginFailure = function(o) {
getEl('dlgbd').update('Error submitting data to server, please try again later');
};
YAHOO.util.Connect.asyncRequest('POST', '/ci/user/login',
{success: loginSuccess, failure: loginFailure});
}
{success: registerSuccess, failure: registerFailure});
thanks Jack :)
setContent is a straight HTML string plug - you have scripts in your HTML string? :shock:
I'm an idiot. I looked at the ContentPanel. Sure I will add it. :D
It's been there since beta 1. Second param, true. You have to tell it to look for scripts, it doesn't do it by default.
loginForm.setContent(o.responseText, true);
Nobody understands...any help please?
50 points for someone willing to do this!!!!!!!!!!?
|