[CLOSED] Alert goes wrong when the page is not visible

  1. #1

    [CLOSED] Alert goes wrong when the page is not visible

    On the following example, if you wait 3 seconds, the alert will be shown as expected within Index 1 tab.



    But if the browser is refreshed (F5), and you set Index 2 as the active tab before the three seconds elapse



    and then, wait more than 3 seconds. When you set Index 1 as the active tab, the Alert went wrong





    INDEX

    <!DOCTYPE html>
    <html>
    <head id="Head1" runat="server">
    </head>
    <body>
        <ext:ResourceManager runat="server" />
        <ext:TabPanel Margin="30" Width="500" Height="500" runat="server">
            <Items>
                <ext:Panel Title="Index 1" runat="server">
                    <Loader Url="Index1" Mode="Frame" runat="server" />
                </ext:Panel>
                <ext:Panel Title="Index 2" runat="server">
                    <Loader Url="Index2" Mode="Frame" runat="server" />
                </ext:Panel>
            </Items>
        </ext:TabPanel>
    </body>
    </html>


    INDEX 1
    <!DOCTYPE html>
    <script type="text/javascript">
        var documentReady = function () {
            setTimeout(function () {
                Ext.Msg.alert("Ext.Net", "Index 1");
            }, 3000);
        }
    </script>
    <html>
    <head runat="server">
        <title>Index1</title>
    </head>
    <body>
        <ext:ResourceManager runat="server">
            <Listeners>
                <DocumentReady Handler="documentReady()" />
            </Listeners>
        </ext:ResourceManager>
        INDEX 1
    </body>
    </html>



    INDEX 2
    <!DOCTYPE html>
    <html>
    <head id="Head1" runat="server">
    </head>
    <body>
        INDEX 2
    </body>
    </html>


    Any ideas to overcome this issue?

    Thanks in advance
    Attached Thumbnails Click image for larger version. 

Name:	ext012.jpg 
Views:	17 
Size:	25.9 KB 
ID:	16341   Click image for larger version. 

Name:	ext013.png 
Views:	15 
Size:	33.4 KB 
ID:	16351   Click image for larger version. 

Name:	ext014.png 
Views:	19 
Size:	32.8 KB 
ID:	16361  
    Last edited by Daniil; Nov 19, 2014 at 10:03 AM. Reason: [CLOSED]
  2. #2
    Hi Raphael,

    HideMode="Offsets" helps.
    <ext:Panel Title="Index 1" runat="server" HideMode="Offsets">
  3. #3
    Thank you Daniil. Please mark this thread as closed.

Similar Threads

  1. Replies: 3
    Last Post: Dec 20, 2010, 6:32 AM
  2. [CLOSED] Problem making visible a label after the page is loaded.
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 11, 2010, 12:31 PM
  3. [CLOSED] Window in a control is visible when page is rendered
    By gokcemutlu in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 15, 2010, 7:05 AM
  4. alert vs Ext.Msg.alert + window.location
    By Nime in forum 1.x Help
    Replies: 0
    Last Post: Nov 10, 2009, 3:34 AM
  5. Replies: 2
    Last Post: Oct 08, 2009, 9:49 AM

Posting Permissions