jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Window popup modal Window popup modal #13526

    JakeWidget
    Member

    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’s

    So 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

    in reply to: HTML Draggable Item HTML Draggable Item #13096

    JakeWidget
    Member

    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

Viewing 2 posts - 1 through 2 (of 2 total)