[FIXED] Tab had a little icon when open on FF

Page 1 of 3 123 LastLast
  1. #1

    [FIXED] Tab had a little icon when open on FF

    Hi !

    I've a bug with the conrol cool:Window and UpdatePanel.

    As you can see, my code is very simple : i try to refresh the content of a cool:window.

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
    
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
    <%@ Register Assembly="Coolite.Web.UI" Namespace="Coolite.Web.UI" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <ext:ScriptContainer ID="ScriptContainer1" runat="server" />
        <title>Test</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" LoadScriptsBeforeUI="true" runat="server" />
            <ext:ScriptManager ID="ExtScriptManager" runat="server" />
            
            
            <ext:Window ID="wdn_nice" 
                        Title="Test Window" 
                        Width="400" 
                        AutoHeight="true" 
                        Shim="false"
                        BodyStyle="padding:10px;" 
                        AutoShow="true" 
                        Collapsible="true" 
                        Resizable="false"
                        IconCls="icon-grid" 
                        runat="server">
                <Content>
                    <asp:UpdatePanel ID="uppanel" UpdateMode="Conditional" runat="server">
                        <ContentTemplate>
                            <asp:Label ID="lbl_debug" Text="" runat="server" />
                            <asp:Button ID="btn_test" Text="Click Me" runat="server" />
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </Content>
            </ext:Window>
        </form>
    </body>
    </html>
    public partial class Default2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            lbl_debug.Text = "LABEL INIT";
        }
    
        protected override void OnInit(EventArgs e)
        {
            btn_test.Click += new EventHandler(btn_test_Click);
            base.OnInit(e);
        }
    
        void btn_test_Click(object sender, EventArgs e)
        {
            lbl_debug.Text = "YOU WIN";
        }
    }
    This simple code doesn't run in IE (seems to run in FF) : there is a null exception ( Ext.EventObject is null )

    With Fiddler, i can see that the file ext-base.js (and only this file) is in the response from the asyncpostback.

    Any help ?

    Edit : Firebug Infos
    WebRessource .axd line 161
    
    <div class="errorTitle">Ext.EventObject has no properties
    <div class="errorTrace"><div class="objectBox objectBox-stackFrame"><a class="objectLink">h</a>(<a class="objectLink objectLink-object">mousemove clientX=0, clientY=0</a>)WebResource.axd (line 161)
    <div class="objectBox objectBox-stackFrame"><a class="objectLink">wrappedFn</a>(<a class="objectLink objectLink-object">mousemove clientX=0, clientY=0</a>)WebResource.axd (line 60)
    
    <div class="errorSourceBox errorSource-exec">[img]chrome://firebug/content/blank.gif[/img]var h=function(e){e=Ext.EventObject.setEvent(e);var t;if(o.delegate){t=e.getTarg...





  2. #2

    RE: [FIXED] Tab had a little icon when open on FF



    Hi Tom,

    I'm looking into this right now. I should have an update for you shortly.
    Geoffrey McGill
    Founder
  3. #3

    RE: [FIXED] Tab had a little icon when open on FF

    Thanks :)
  4. #4

    RE: [FIXED] Tab had a little icon when open on FF



    Hi Tom,

    At first I did not think nesting an UpdatePanel inside a Window control would work, but much to my surprise using the latest code everything appears to work great in both FF and IE 7/8.

    What version of IE are you using?

    Are you using the 0.4.0 release of the controls?

    We should be releasing 0.4.1 later today, so that might help solve the problem.

    Here's the sample I was testing with...

    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Coolite.Web.UI" Namespace="Coolite.Web.UI" TagPrefix="cool" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
        "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    
    <script runat="server">
    
        protected override void OnInit(EventArgs e)
        {
            this.btnwindow.Click += new EventHandler(btnWindow_Click); base.OnInit(e);
        }
    
        protected void btnTab_Click(object sender, EventArgs e)
        {
            this.lblTab.Text = DateTime.Now.ToLongTimeString();
        }
    
        protected void btnWindow_Click(object sender, EventArgs e)
        {
            this.lblwindow.Text = DateTime.Now.ToLongTimeString();
        }
        
    </script>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>ASP.NET AJAX UpdatePanel with TabPanel and Window</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <cool:ScriptManager ID="ExtScriptManager" runat="server" Hide="True" /> 
            <asp:ScriptManager ID="ScriptManager2" LoadScriptsBeforeUI="true" runat="server" />
    
            
                <h1>ASP.NET AJAX UpdatePanel with TabPanel and Window</h1>
                
                <asp:UpdatePanel ID="UpdatePanel1" runat="server"> 
                    <ContentTemplate>
                    
                        <br />
                        <br />
                        <asp:Button ID="btnTab" Text="Click Me" runat="server" &#111;nclick="btnTab_Click" />
                        <br />
                        <br />
                        
                        <cool:TabPanel 
                            ID="TabPanel1" 
                            runat="server" 
                            ActiveTab="0" 
                            Height="300px"
                            BodyStyle="padding:6px;">
                            <Items>
                                <cool:Tab ID="Tab1" runat="server" Title="Tab1">
                                    <Content>
                                        <asp:Label ID="lblTab" runat="server" Text="[Click Button above]" />
                                    </Content>
                                </cool:Tab>
                                <cool:Tab ID="Tab2" runat="server" Title="Tab2">
                                    <Content>
                                        This is Tab2
                                    </Content>
                                </cool:Tab>
                            </Items>
                        </cool:TabPanel>
                        
                    </ContentTemplate>
                </asp:UpdatePanel> 
                        
                <cool:Window 
                    ID="Window1"
                    Title="Test Window"
                    Width="300px"
                    BodyStyle="padding:6px;"
                    AutoShow="true"
                    Collapsible="true"
                    IconCls="icon-application"
                    runat="server" 
                    Height="175px">
                    <Content>
                        <asp:UpdatePanel ID="UpdatePanel2" runat="server"> 
                            <ContentTemplate>
                                <asp:Button ID="btnWindow" Text="Click Me" runat="server" />
                                <asp:Label ID="lblWindow" runat="server" Text="[Click Button]" />
                            </ContentTemplate>
                        </asp:UpdatePanel> 
                    </Content>
                </cool:Window>
            
           
        </form>
    </body>
    </html>
    Geoffrey McGill
    Founder
  5. #5

    RE: [FIXED] Tab had a little icon when open on FF



    Hi Tom,

    I added my sample above to our new Sandbox test site. See http://sandbox.ext.net/UpdatePanel-w...nd-window.aspx
    Geoffrey McGill
    Founder
  6. #6

    RE: [FIXED] Tab had a little icon when open on FF

    Hi Geoffrey,

    I use FF 2.0.0.12, IE 6.0.29, and Coolite 0.4.0.6564

    In fact, there is a conflit bug with the Coollite Script Manager and the Update Panel. I will try your example now.
    Thanks
  7. #7

    RE: [FIXED] Tab had a little icon when open on FF

    Ok, i've got the same error with your example :(
    I will wait your release 0.41 and re-test

    Edit : Are you using .NET 3.5 or .NET 2 ? (Personnally : .NET 2)
  8. #8

    RE: [FIXED] Tab had a little icon when open on FF

    Hi Tom,

    If you view our sandbox sample online, is the javascript error thrown?

    http://sandbox.ext.net/UpdatePanel-w...nd-window.aspx
    Geoffrey McGill
    Founder
  9. #9

    RE: [FIXED] Tab had a little icon when open on FF

    Hi Geoffrey

    It's work fine with your online sample (FF / IE), i've no errors.


  10. #10

    RE: [FIXED] Tab had a little icon when open on FF

    Working perfect with coolite v0.4.1 :)
    Thanks :)
Page 1 of 3 123 LastLast

Similar Threads

  1. [FIXED] [1.4] [2.0] Icon Name Rendering
    By burakkanmaz in forum Bugs
    Replies: 5
    Last Post: Mar 06, 2012, 6:54 AM
  2. Replies: 1
    Last Post: Feb 16, 2010, 4:16 PM
  3. Replies: 5
    Last Post: Jun 16, 2009, 1:27 PM
  4. Replies: 3
    Last Post: Jun 24, 2008, 12:32 AM
  5. Replies: 5
    Last Post: Mar 15, 2008, 3:53 PM

Posting Permissions