Threaded View

  1. #1
    Ext JS Premium Member rstuart's Avatar
    Join Date
    Jan 2008
    Brisbane, Australia
    Vote Rating
    rstuart is on a distinguished road


    Question [2.1][FIXED] Unexpected MessageBox behaviour

    [2.1][FIXED] Unexpected MessageBox behaviour

    Hi all,

    I have come across some unexpected behavior with the Ext.MessageBox class. I was hoping someone could verify that I'm indeed not doing something wrong and what happening is a little strange.

    The problem I'm having is that when you display a progress dialog with text in the progress bar, do some updates of the progress bar then hide the window, any subsequent MessageBox incarnations with a progress bar (ie MessageBox.wait) will have the text last displayed in the progress bar of the progress dialog in its progress bar, and there doesn't seem to be a way to get rid of it.

    Below are two simple files that will recreate the problem. If you save them under the message-box folder in the examples of the ext 2.1 release, they should just work.

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
        <!-- GC -->
            <!-- LIBS -->
            <script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
            <!-- ENDLIBS -->
        <script type="text/javascript" src="../../ext-all-debug.js"></script>
        <script type="text/javascript" src="test.js"></script>
        <!-- Common Styles for the examples -->
        <link rel="stylesheet" type="text/css" href="../shared/examples.css" />
        <style type="text/css">
            .x-window-dlg .ext-mb-download {
                background:transparent url(images/download.gif) no-repeat top left;
    <script type="text/javascript" src="../shared/examples.js"></script><!-- EXAMPLES -->
    <h1>MessageBox Dialogs</h1>
        <b>Progress Dialog</b><br />
        Dialog with measured progress bar.
        <button id="mb6">Show</button>
        <b>Wait Dialog</b><br />
        Dialog with indefinite progress bar and custom icon (will close after 8 sec).
        <button id="mb7">Show</button>
        Ext.get('mb6').on('click', function(){
               title: 'Please wait',
               msg: 'Loading items...',
               progressText: 'Initializing...',
           // this hideous block creates the bogus progress
           var f = function(v){
                return function(){
                    if(v == 12){
                        var i = v/11;
                        Ext.MessageBox.updateProgress(i, Math.round(100*i)+'% completed');
           for(var i = 1; i < 13; i++){
               setTimeout(f(i), i*500);
        Ext.get('mb7').on('click', function(){
            Ext.MessageBox.wait('Saving your data', 'Saving...', {text:''});
                //This simulates a long-running operation like a database save or XHR call.
                //In real code, this would be in a callback function.
            }, 4000);
        function showResult(btn){
            Ext.example.msg('Button Click', 'You clicked the {0} button', btn);
        function showResultText(btn, text){
            Ext.example.msg('Button Click', 'You clicked the {0} button and entered the text "{1}".', btn, text);
    Last edited by mystix; 9 May 2008 at 10:14 AM. Reason: moved from Open Discussion to 2.x Bugs

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi