Thursday, March 3, 2011

JQuery load delay


JQuery Dialog load delay setTimeout

Use below with this article http://harshal-techapps.blogspot.com/2011/02/pop-up-dialog-box-example-using-jquery.html
$(window).delay(8).load(function() {
            setTimeout(callme,15);
        });
function callme(){
$( "#dialog1" ).dialog({ height: 150,
                        width: 300,
                        modal: true,
                        position: 'center',
                        title:'Hello All',
                        overlay: { opacity: 0.5, background: 'black'},
                        font: 'Monospace'
                        } );
                        $("#dialog1" ).dialog("open");

            return false;
}

No comments:

Post a Comment