error on opening a window

  1. #1

    error on opening a window

    Hi,

    I open a webpage inside a window then close it. When i try to open it again, I get this error message ("this.west.el" is null or not an object). Do you know why?

    
    
    
    protected void cmdshowexample1_Click(object sender, Coolite.Ext.Web.AjaxEventArgs e)
    
    
    {
    
    
    this.Windowexample.LoadContent("example.aspx");
    
    
    this.Windowexample.Show();
    
    
    }
    
    
    protected void cmdcloseExample_Click(object sender, Coolite.Ext.Web.AjaxEventArgs e)
    
    
    {
    
    
    this.Windowexample.Close();
    
    
    }
    
    
    
    <ext:Window ID="Windowexample" runat="server" Collapsible="true" Icon="Application" Title="The National Buying Survey" 
    
    
    Maximizable="true" Minimizable="false" Closable="false" Modal="true" CloseAction="Hide" MinHeight="550" MinWidth="800" ShowOnLoad="false">
    
    
    <AutoLoad Mode="IFrame"></AutoLoad> 
    
    
    <TopBar>
    
    
    <ext:Toolbar ID="Toolbar1" runat="server">
    
    
    <Items>
    
    
    <ext:ToolbarButton ID="cmdcloseExample" runat="server" Text="Close" Icon="DoorOut">
    
    
    <AjaxEvents>
    
    
    <Click OnEvent="cmdcloseExample_Click">
    
    
    <EventMask ShowMask="true" Msg="Please wait..." />
    
    
    </Click>
    
    
    </AjaxEvents>
    
    
    </ext:ToolbarButton>
    
    
    
    
    
    </Items>
    
    
    </ext:Toolbar>
    
    
    </TopBar>
    
    
    </ext:Window>
    Thanks for your help.
    Kamal
  2. #2

    RE: error on opening a window

    Maybe just call .Hide() instead of .Close().

    Example


    this.Windowexample.Hide();

    Hope this helps.


    Geoffrey McGill
    Founder
  3. #3

    RE: error on opening a window

    Geoffrey,

    I'm running into a similar issue as well.


    Similar environment as previous poster...


    On a starting page, I launch a window. The window's markup is inside the starting page, and the window's body has a user control inside. The user control assigns a value for the app, then calls to close the window hosting it.


    If I attempt to call the window again (whether I close it or hide it) I get the "this.west.el" error the previous poster mentions.




Similar Threads

  1. Opening Window at required position
    By designworxz in forum 1.x Help
    Replies: 1
    Last Post: Jan 11, 2012, 2:39 PM
  2. Opening a new Browser window on row select
    By OSSAGHO in forum 1.x Help
    Replies: 0
    Last Post: Sep 23, 2011, 8:41 AM
  3. [CLOSED] Error opening window from codeBehind
    By edigital in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 16, 2010, 8:25 AM
  4. [CLOSED] Opening Window From Gridpanel
    By LeeTheGreek in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jun 26, 2009, 7:31 AM
  5. Opening a window from a dynamic link
    By t0ny in forum 1.x Help
    Replies: 2
    Last Post: Jun 11, 2008, 5:42 AM

Posting Permissions