[CLOSED] change window's title issue?

  1. #1

    [CLOSED] change window's title issue?

    hi,

    can not change window's title through js after changed it through code behind.
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm16.aspx.cs" Inherits="extdemo.test.WebForm16" %>
    
    <!DOCTYPE html>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title></title>
        <script runat="server">
            protected void ShowWindowAndChangeTitle(object sender, DirectEventArgs e)
            {
                w_1.Hidden = false;
                w_1.Title = "changed title";
            }
        </script>
    </head>
    <body>
        <form id="form1" runat="server">
            <ext:ResourceManager runat="server" SourceFormatting="True"></ext:ResourceManager>
            <ext:Window runat="server" ID="w_1" Hidden="True" Title="original title"></ext:Window>
            <ext:Button runat="server" Text="change title">
                <DirectEvents>
                    <Click OnEvent="ShowWindowAndChangeTitle"></Click>
                </DirectEvents>
            </ext:Button>
            <ext:Button runat="server" Text="show original title">
                <Listeners>
                    <Click Handler="
                        App.w_1.title='original title';//  can not change window's title here, why?
                        App.w_1.show();
                        "></Click>
                </Listeners>
            </ext:Button>
        </form>
    </body>
    </html>
    Last edited by geoffrey.mcgill; Jan 03, 2014 at 3:06 AM. Reason: [CLOSED]
  2. #2
    Hello,

    Client-side, you can set the title by calling the .setTitle() function.

    http://docs.sencha.com/extjs/4.2.2/#...ethod-setTitle

    Hope this helps.
    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] Change title in Details Calendar
    By osef in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 19, 2013, 5:40 PM
  2. Replies: 15
    Last Post: Jan 29, 2013, 2:44 PM
  3. ext:Desktop StartMenu title how to change it
    By xtremexploit in forum 1.x Help
    Replies: 2
    Last Post: Nov 29, 2011, 3:23 PM
  4. [CLOSED] Change Popup window Title
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 16, 2011, 11:15 AM
  5. Change Tab title
    By Dgsoft.ru in forum 1.x Help
    Replies: 1
    Last Post: Apr 13, 2009, 11:39 AM

Posting Permissions