multiple windows instances and referencing corrent one from Parent

  1. #1

    multiple windows instances and referencing corrent one from Parent

    Hi again,

    I have an app that has the ability to create multiple instances of a window. Inside each new window, loaded in the iframe is another .aspx page containing some coolite form elements <Ext.Panel> <Ext:TextField>, etc.

    
    
    
            function createWindow(RealTitle,TargetUrl) 
            {            
                toolwindow = new Ext.Window({
                    modal: false,                
                    icon: 'LaptopEdit',                
                    maximizable: true, 
                    minimizable:true,               
                    title: RealTitle, 
                    constrain: true,
                    resizable: true,
                    header: true,               
                    autoLoad:{maskMsg:"Loading...",
                    showMask:true,
                    mode:"iframe", 
                    url:TargetUrl},                
                    width:840,                
                    height:675,                
                    bodyStyle: 'background-color: #fff;' 
             });            
             
             toolwindow.show();  
            
             }
    In the child page I have a keyUp javascript event setup on a Ext:TextField (Name field) that updates the Ext.Window title bar:

    
    
    
    var updateWinTitle = function ()
    { 
         parent.updateWinTitle("VitalTerm - " + "[" + <%=TextField5.ClientID %>.getValue() + "]");
    };
    This works fine for only one window instance. However, this doesn't work if more than one instance and any keyUp events from any child window updates only the most recent created window title. How can I get my child pages update their own windows titles? How can I reference the correct Ext.window id for the child containing window?

    I attached a snapshot of my scenario from the UI if it makes things clearer.

    Any help would be greatly appreciated. Thanks.
  2. #2

    RE: multiple windows instances and referencing corrent one from Parent

    Anyone have any ideas??
  3. #3

    RE: multiple windows instances and referencing corrent one from Parent

    Been working on other items..

    Does anyone know how to do this??

Similar Threads

  1. Right Way of creating multiple windows.
    By Mauricio Rojas in forum 1.x Help
    Replies: 1
    Last Post: Feb 22, 2012, 8:33 PM
  2. [CLOSED] ids and multiple instances of the same UI
    By PLoch in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 28, 2011, 9:44 PM
  3. [CLOSED] Multiple Editors - Multiple Instances?
    By jwf in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jun 09, 2011, 5:45 PM
  4. multiple instances of the same panel
    By costab in forum 1.x Help
    Replies: 3
    Last Post: May 30, 2011, 4:46 PM
  5. [CLOSED] Create multiple windows..
    By mattwoberts in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 11, 2011, 12:11 PM

Posting Permissions