jQWidgets Forums
Forum Replies Created
-
Author
-
I was having a similar problem trying to popup a modal window over an existing modal window (in my case, I was popping up a “Save Changes?” type confirmation window over an existing modal “dialog”).
I updated to 2.6, but was still having problems with a “modal over a modal”.
Dimitar’s solution provided here will work to fix that situation with a slight modification:
– you will have to set the z-index to be higher. I don’t know the exact # required, but 30000 worked for me.
– set the z-index for just your confirmation window, not all “.jqx-window” class’sSo something like this:
$("#firstWidnow").jqxWindow({ width: 300, height: 300, isModal: true, autoOpen: false });$("#confirmationMsgWindow").jqxWindow({ width: 300, height: 300, isModal: true, autoOpen: false });$("#confirmationMsgWindow").css("z-index", "30000");
Jake
Hi Peter,
Thanks for your EXTREMELY fast response!
My hope was to use the HTML dragging events so that it worked with a fair amount of other code that I already have in place. Among other things the target recipient is expecting a HTML dragEvent (rather than a jqx one) to process the event. The HTML code uses the “dataTransfer” mechanism and I was hoping to setup the same thing.
Specifically it currently does something like this:
ondragstart=’event.dataTransfer.setData(“SourceItem”, sourceItemID);’
and then later
ondrop=’alert(event.dataTransfer.getData(“SourceItem”));’
Obviously I could add support to my drop target to accept either type of drag sources, but in the interests of simplicity and minimizing code I was hoping to not have too. If it is not possible, or overly complex to achieve a workaround I will just go ahead and do that 🙂
Thanks!
Jake -
AuthorPosts