[CLOSED] Change Popup window Title

  1. #1

    [CLOSED] Change Popup window Title

    Hi All,

    We have to open the new window by using the following way
    function alert_message(no, page, w, h, t) {
    win = new Ext.Window(
    {
    modal: true,
    layout: 'absolute',
    title: t,
    closable: true,
    resizable: false,
    autoLoad: { showMask: true, maskMsg: load, scripts: true, mode: "iframe", url: page },
    autoScroll: false,
    id: "a" + no
    });
    win.width = w;
    win.height = h;
    return win;
    }
    We have a requirement for change the window title after loading the popup window.
    Please help us how to change the title?
    For example, initially we have opened a window with title "Communication". After loading the window we will change caption like "Communication-Order Released". This value should come based on the screen field value
    Last edited by geoffrey.mcgill; Aug 23, 2011 at 7:06 PM. Reason: [CLOSED]
  2. #2
    Use 'setTitle' js method
    var w = alert_message(...);
    w.setTitle('New title');
  3. #3

    Change Popup window Title

    Hi Daniil,

    We have used to open popup window script in top frame page. I want to change the caption based on child form control value in child popup page

    Quote Originally Posted by Vladimir View Post
    Use 'setTitle' js method
    var w = alert_message(...);
    w.setTitle('New title');
  4. #4
    Hi,

    To access a parent's Ext.Window instance from IFrame please use:
    parent.windowClientId.setTitle("title");
    To access an IFrame's Ext.Window instance from a parent please use:
    containerWithIframeId.getBody().windowClientId.setTitle("title");

Similar Threads

  1. Replies: 1
    Last Post: Jun 18, 2012, 3:41 PM
  2. [CLOSED] How to remove 'X' (window close) for popup window?
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 31, 2011, 3:50 AM
  3. [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
  4. Replies: 1
    Last Post: Mar 14, 2011, 4:20 PM
  5. Replies: 1
    Last Post: Mar 11, 2011, 10:07 PM

Tags for this Thread

Posting Permissions