Dynamic window event

  1. #1

    Dynamic window event

    Hi,

    I created new window like this :
    var w = desk.createWindow({
        title: title,
        width: 1000,
        height: 600,
        id: winID,
        maximizable: true,
        minimizable: true,
        autoLoad: {
          url: url,
          mode: "iframe",
          showMask: true
        }
      });
    I want to add listerner (in code behind or client side) on the "Hide" and "Show" events.

    How can I do?

    Thanks.
  2. #2

    RE: Dynamic window event



    Not tested but I believe this should do it:

    var w = desk.createWindow({
        title: title,
        width: 1000,
        height: 600,
        id: winID,
        maximizable: true,
        minimizable: true,
        autoLoad: {
          url: url,
          mode: "iframe",
          showMask: true
        },
        listeners: {
            'hide': function() {//do something},
            'show': function() {//do something}    
        }
      });
  3. #3

    RE: Dynamic window event

    Hi JChau,

    I think it would be used by me. Thank you.
    But what I was looking for is the syntax to write an addListener in javascript.
    My question was not very clear I think.

    So I found here :

    http://www.extjs.com/deploy/dev/docs...le-addListener

    Yannis.

Similar Threads

  1. Replies: 7
    Last Post: Feb 09, 2012, 11:17 AM
  2. [CLOSED] Standard Form Window Instead of Event Edit Window
    By ppqrnd in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 07, 2011, 1:20 AM
  3. Dynamic TextField KeyUP Event
    By archana in forum 1.x Help
    Replies: 0
    Last Post: Oct 21, 2011, 6:23 AM
  4. [CLOSED] Create a dynamic event for dynamic components.
    By stoque in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: May 10, 2011, 9:16 PM
  5. [CLOSED] Button event is not firing in parent window from popup window
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 14, 2011, 7:35 PM

Posting Permissions