Hello, using JQuery UI Dialog for simple dialogues works very well but creating nested dialogues gets messed up by the IE z-axis fix the jquery ui library comes with.
I uploaded a code scenario: http://snipplr.com/view/20577/jquery-generic-dialog-example-part-12/ http://snipplr.com/view/20578/jquery-generic-dialog-example-part-22/ The first page contains a link to show up a dialog that I'll be using as a container for generic content later on. If I click this link an ajax request is made to fetch the content and on success the content will be placed inside the generic dialog. The second page contains the content that will be polled by the ajax request. This content contains a second dialog with a link and a dropdown select - both will be registered to click/change events. And now: If I load the whole page _once_ I can open the first dialog with the link to the second dialog. When the second dialog pops up I can click the inner link and the alert inside the handler shows up exactly _once_. (same for the select change event) But when I close the second and then the first level dialog and reopen both the same way I did before the click/change events are triggered _twice_. (because jquery clones the dialog div with the same id and puts it to the body bottom) So how to create generic dialogues when the "destroy" signal doesn't clean up everything correctly? (my jquery version is up to date) Regards - Marcel Karras
signature.asc
Description: OpenPGP digital signature