With jQuery Impromptu, how to close a dialog and pop up another one

287 Views Asked by At

I've got an ajax call happening that has a $prompt dialog open. I want to close that dialog and put up another one. How can I do that?

            if (dataNew.Message && dataNew.Message.length > 0) {
                $.prompt.close();
                $.prompt("Problem", dataNew.Message);
            } 

The above does not work. The original dialog stays open.

0

There are 0 best solutions below