[CLOSED] BodyStyle in window with iframe?

  1. #1

    [CLOSED] BodyStyle in window with iframe?

    Hi
    Im trying to use bodystyle in a window that has an iframe, and it does not work. Im I doing something wrong here?

    
    
    
                wndwindow.BodyStyle = "padding:100px;";
                wndwindow.AutoLoad.Url = "SomePage.aspx";
                wndwindow.AutoLoad.Mode = Coolite.Ext.Web.LoadMode.IFrame;
                wndwindow.Show();
                wndwindow.Load();
    /Mikael
  2. #2

    RE: [CLOSED] BodyStyle in window with iframe?

    Hi Mikael,

    The following sample seems to work for me.

    Example

    <ext:Window 
        ID="Window1" 
        runat="server" 
        Title="Window" 
        Height="350" 
        Width="500" 
        BodyStyle="padding:100px;">
        <AutoLoad Url="Child.aspx" Mode="IFrame" />
    </ext:Window>
    Are you able to post a full sample which reproduces the problem.

    Geoffrey McGill
    Founder
  3. #3

    RE: [CLOSED] BodyStyle in window with iframe?



    HiYes you example works.
    But not this.


    <%@ 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">
    
    
    
    <script runat="server">
    
    
        protected void Page_Load(object sender, EventArgs e)
        {
    
    
        }
        
        protected void Open(object sender, AjaxEventArgs e)
        {
                
                wndwindow.BodyStyle = "padding:100px;";
                wndwindow.AutoLoad.ShowMask = true;            
                wndwindow.AutoLoad.Url = "Child.aspx";
                wndwindow.AutoLoad.Mode = Coolite.Ext.Web.LoadMode.IFrame;
                wndwindow.Show();
                wndwindow.Load();
        
        }
    
    
    </script>
    
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
    
    
    <script type="text/javascript">
    
    
    
    </script>
    
    
    <title>Example</title>
    
    
       
    
    
    </head>
    <body style="padding:10px;">
    <form id="form1" runat="server">
    <ext:ScriptManager ID="ScriptManager1" Theme="Slate" runat="server"  >
    <AjaxEvents><DocumentReady OnEvent="Open" /></AjaxEvents>
    </ext:ScriptManager>
    
    
    
               <ext:Window Border="false" Width="500" Height="500" Center&#111;nload="true" ID="wndWindow"  runat="server"  >
               </ext:Window>
                                        
    </form>
    </body>
    </html>

    /Mikael
  4. #4

    RE: [CLOSED] BodyStyle in window with iframe?

    Ok, the .BodyStyle property was not set to update correctly during an AjaxEvent.


    I've added the functionality and committed to SVN. The functionality will also be included with the upcoming v0.8.0 release.*


    Hope this helps.


    Geoffrey McGill
    Founder
  5. #5

    RE: [CLOSED] BodyStyle in window with iframe?

    thanks, now its works!

    /Mikael

Similar Threads

  1. Replies: 7
    Last Post: Feb 09, 2012, 11:17 AM
  2. [CLOSED] Window IFrame + https and ssl
    By moth1 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 20, 2012, 12:53 PM
  3. Window + BodyStyle IE7 bug
    By Markp11 in forum 1.x Help
    Replies: 3
    Last Post: Nov 18, 2011, 10:49 AM
  4. [CLOSED] Bug with Window and Iframe mode
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Oct 19, 2010, 11:18 AM
  5. Replies: 0
    Last Post: Apr 04, 2009, 10:45 AM

Posting Permissions