XN--KCR71UQTW.COM
welcome to my space
X
Search:  
 HOME   loadscripts for tabpanelitem setcontent
loadscripts for tabpanelitem setcontent
Published by: rose 2009-01-08

  • 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.html
    HOME
    },


  • 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!!!!!!!!!!?


    About us -Site map -Advertisement -Jion us -Contact usExchange linksSponsor us
    Copyright© 2008 xn--kcr71uqtw.com All Rights Reserved
    Site made&Support support@xn--kcr71uqtw.com    E-mail: web@xn--kcr71uqtw.com