Create a dialog on the fly

jQuery dialog

Normally you select a div element for displaying a dialog with jQuery dialog. But if you want to display two dialogs you ran into a problem. Nicer is just creating the div element dynamic and use this as the dialog. Now it's possible to show multiple dialogs:

    function CreateDivInParent(divid) {
        parent.$("#inhoud").append("<div id=" + divid + "></div>");
        divid = "#" + divid;
        return parent.$(divid);

How to use it

This will show you a dialog with the a element wich is just created. There is no content jet but this can be loaded dynamically:

                    height: rapport.Height +100,
                    width: rapport.Width + 100,
                    modal: false,




Saving your comment....

Naam is verplicht!
Email is verplicht!
Opmerking is verplicht!