ENART.HZRN.COM
welcome to my space
X
Search:  
 HOME   Click/Activate Event of Content Panel
Click/Activate Event of Content Panel
Published by: mike 2010-03-17
Welcome to:enart.hzrn.com

  • Hi -

    I am trying to do something when a content panel gets activated/clicked.

    For some reason, when I click on the tab, the function does not get fired at all. am I missing something.

    layout.add('west', tab22= new Ext.ContentPanel('xxx',{
    autoCreate:true,
    title: 'Tab 22',
    fitToFrame:true,
    closable: false,
    listeners: {
    'click': alert('call me')
    }
    }));

    This script gets called during the load event of the page and not during the click event of the tab.

    tab22.on('click', alert('been clicked'), this);

    The above does the same thing !!

    Please help.

    Thanks
    Joseph


  • Please post your code in CODE tags, not bold.
    This has been covered many times. You're executing the alert immediately on assigning the handler. You need to wrap that in an anonymous function or make it a reference a local function in your code, without parens, that will executed when the event occurs.


  • The event is activate, not active.


  • Oops... sorry about it !! thanks for pointing it out.


  • I am trying to do this, but am having no luck. Am I missing something?


    layout.add('west', lab2 = new Ext.ContentPanel('tab22', {title: 'Details', fitToFrame:true}));
    tab22.on('active', function() {
    callWhileActive();
    });

    var callWhileActive= function(){
    alert('in here');
    };

    Let me know... thanks !!





  • Accessing Layout from iframe window
    Collaped panel doesn't update until expanded with toggle

    You are looking at:enart.hzrn.com's Click/Activate Event of Content Panel, click enart.hzrn.com to home
  • i heard a song today which is new and all i can remember is oh oh oh oh ohhhh
  • do paid surveys send your money in the mail
  • why is it hard for me to be outgoing
  • yahoo email question help
  • feel really depressed
  • why can 039 t i send e mail
  • how do i block unwanted e mail from my box soliciting type mail
  • has anyone else received dodgy emails from rule britannia
  • can you please help me
  • please help females preferable
  • how do i make ie mail button go to yahoo sign in page
  • how can i mark email in yahoo to show it is received
  • can i get my deleted emails back they are no longer in the trash and they were sent year ago
  •  
  • my girlfriend 039 s best friend and her have recently had a fight and won 039 t get over it
  • how do i stop the ads yahoo puts in my email from covering the screen when my cursor accidentally goes over
  • how come the first time
  • i got internet explora beta 8 how do i change it back to internet explorer 7
  • is there an 039 out of town 039 or other type of auto response feature i can use on incoming mails
  • how do i delete those e mails
  • where do scammers get our email address
  • yahoo email and vista login problems
  • i have internet explorer beta 8 but how do i change it back to internet explorer 7
  • is it wrong to date a family friend
  • does he pretend to be angry to get me away from him
  • pre order tokio hotel 039 s dvd help
  • is it tacky to wear two rings on the same hand
  • guys only is the gf ugly or pretty
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 enart.hzrn.com        Site made:CFZ