[CLOSED] Window Help

  1. #1

    [CLOSED] Window Help

    Hello,

    With the following example, I would like to know how I can make an ExtJS Window take over the parent page and not just the iframe? Wondering if this is possible?

    Example.aspx:
    <%@ Page Language="C#" %>
    <%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>Example</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True" />
            <ext:ScriptManager ID="ScriptManager2" runat="server" StateProvider="PostBack" />
            <ext:Panel ID="Panel1"
                runat="server"
                AutoLoadIFrame="Example-Frame.aspx"
                Height="400"
                Width="600" />
        </form>
    </body>
    </html>
    Example-Frame.aspx:
    <%@ Page Language="C#" %>
    <%@ Register assembly="Coolite.Ext.Web" namespace="Coolite.Ext.Web" tagprefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head id="Head1" runat="server">
        <title>Example</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <asp:ScriptManager runat="server" EnablePartialRendering="True" />
            <ext:ScriptManager runat="server" />
            <ext:Window runat="server"
                AutoLoad="http://www.google.com"
                Modal="True"
                Show&#111;nload="True"
                Height="300"
                Width="400" />
        </form>
    </body>
    </html>
    Cheers,
    Timothy
  2. #2

    RE: [CLOSED] Window Help

    Hi Timothy,

    Any chance you could define the Window in the Parent page? If you show a Model Window within an <iframe>, only the size of the <iframe> will be masked and a Window defined within the <iframe> can not "escape".




    Geoffrey McGill
    Founder
  3. #3

    RE: [CLOSED] Window Help

    Sure, can you provide me with an example of how I could manipulate the Window in the parent from the iframe then?

    Cheers,
    Timothy
  4. #4

    RE: [CLOSED] Window Help

    Hi Timothy,

    The following forum thread details how to get an instance of another control/DOMobject from an <iframe>, see*http://forums.ext.net/showthread.php...2138-16-1.aspx


    Hope this helps.


    Geoffrey McGill
    Founder
  5. #5

    RE: [CLOSED] Window Help

    geoffrey.mcgill (10/23/2008)Hi Timothy,

    The following forum thread details how to get an instance of another control/DOMobject from an <iframe>, see http://forums.ext.net/showthread.php...2138-16-1.aspx


    Hope this helps.

    Are you using examples of my previous answers to answer my own question? Tsk!

    I figured I would have to use the DOM directly, just wanted to make sure ;)

    Cheers,
    Timothy
  6. #6

    RE: [CLOSED] Window Help

    Ha... you're right. I didn't even notice. Sorry about that!

    Yes, there's really very little difference between manipulating a control that is on the current page or another parent window. If the dom object resides in another browser window (or iframe) you just need to prefix the reference to the dom object (or toolkit controls .ClientID) with the browser window specifier.

    Once you have an instance of the dom object it's bussiness as usual.

    Accessing an object within a parent from a child <iframe> would be parent.&#100;ocument.[ClientID].

    Example

    parent.&#100;ocument.Window1.getBody().update('Hello World');
    Geoffrey McGill
    Founder
  7. #7

    RE: [CLOSED] Window Help

    Cool snuff, I'll work with manipulating the dom at this point.

    Cheers for the response,
    Timothy

Similar Threads

  1. [CLOSED] Problem: Closing Maximized Window will loose parent window scrollbar
    By tlfdesarrollo in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 19, 2012, 8:51 PM
  2. Replies: 8
    Last Post: Mar 13, 2012, 5:54 PM
  3. Replies: 6
    Last Post: Feb 15, 2012, 4:15 PM
  4. Replies: 7
    Last Post: Feb 09, 2012, 11:17 AM
  5. Replies: 1
    Last Post: Mar 14, 2011, 4:20 PM

Posting Permissions