Andreas
Andreas

Reputation: 555

jquery dialog box is unwilling to explode

As the headline tells, the hide: "explode" function is not working...

here is the code:

function alerter(text, title) {
    var random = Math.floor( Math.random() * (1000000) );
    $('body').append('<div id="' + random + '">' + text + '</div>');
    $('#' + random).dialog({
        minHeight: 100,
        modal: true,
        hide: "explode",
        resizable: false,
        title: title,
        close: function(event, ui) { 
            $(this).dialog('destroy').remove();
        }
    });
}

the box is just disapearing when I hit the x - but I want it to explode... what am I doing wrong?

Upvotes: 0

Views: 854

Answers (1)

PetersenDidIt
PetersenDidIt

Reputation: 25620

Seems to work just fine:

http://jsfiddle.net/petersendidit/xsnTs/1/

Upvotes: 1

Related Questions