As example I pasted a piece of my real life working code

openDialogWnd: function(){
            var that = this;

            $('#modal_win').dialog({
                modal: true,
                width: '900px',
                height: '550',
                title: '123',
                buttons: {
                    '': function () {
/* After the destroying all of
 * the contents of a dialog we
 * need to initialize the system
 * again
 */
*                                               // HERE I AM REFRESHING ALL
MY EVENTS INVOLVED IN*

*                  that.initSystem();*


$(this).dialog('close');
                    }
                },
/*
 * Before we close the Dialog window
 * flush all of the old contents
 */
beforeclose : function () {
/*
 * Destroying the dialog
 */
$(this).dialog('destroy');

$('#lesson_scene #character_container').html('');
$('#lesson_scene #lessons_nav_bar').html('');
$('#scene-text #english').css({display : 'none'});
$('#scene-text #translation').css({display : 'none'});
$('#scene-text #description').css({display : 'block'});
}
            });

$('button').each(function(){
$(this).focus(function () { this.blur(); });
     });

that.setControls();

            return false;
        }
    };


With best,
Sultan Imanhodjaev

--

You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to jquery...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.


Reply via email to