You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use this jQuery plugin to create stackable modals. what is important to me is that original parent (the plugin code appends the new opened modals to body). The requirement is that I have to select modal from a click of the button within modal content. that button is in a iframe source within the modal (opened). to select iframe (on click of button) I use window.frameElement and then use jquery 'closest' function to get the modal.
I figured that the parent of the modal could be queried through jQuery data using 'modal' as the key. what I found was that all the modals are actually appended on top window body the modal data get lost as the modal data was saved (when initially modal was shown) to first / parent modals jQuery instance context. while now the window.parent == window.top on second level modal.
is there any way out.
Thanks,
Gunjan
The text was updated successfully, but these errors were encountered:
Hello,
I am trying to use this jQuery plugin to create stackable modals. what is important to me is that original parent (the plugin code appends the new opened modals to body). The requirement is that I have to select modal from a click of the button within modal content. that button is in a iframe source within the modal (opened). to select iframe (on click of button) I use window.frameElement and then use jquery 'closest' function to get the modal.
I figured that the parent of the modal could be queried through jQuery data using 'modal' as the key. what I found was that all the modals are actually appended on top window body the modal data get lost as the modal data was saved (when initially modal was shown) to first / parent modals jQuery instance context. while now the window.parent == window.top on second level modal.
is there any way out.
Thanks,
Gunjan
The text was updated successfully, but these errors were encountered: