I cannot find the way lightbox popup window is closed when user pushes escape button.
No such event handler in lightbox.js file.
Somebody can explain the way lightbox closes the popup?
I absolutely forgot that ekko ligthbox is connected to bootstrap, so the behavior was going from bootstrap.js.
Line #1062 if somebody has the same question as mine.
Related
I am trying to close the current tab when the user clicks on the 'CloseWindow' Button. Whatever I try
VM303:1 Scripts may close only the windows that were opened by them.
statement is displayed. I tried all the workarounds using self, window.opener.close() etc.
Has anyone done and it's working please share and help. I am using React framework. I am trying this in a jsx file.
Im stumped..... I'm using Fancybox jquery plug in to display some iframes over the top of my page in a lightbox style.... i have it all working but if I try to link to an external website from within the lightbox using the normal somesite
I before you suggest it I have tried target="_blank"with no luck.
it opens in the lightbox not in the original window, I dont mind if it opens in a new tab or windows I just cant have it opening in the lightbox... has anyone else experienced this before?
Just to make sure that I have understood the scenario here -
You have a link that when clicked, opens the content in a fancybox pop-up.
This content has some text and within that, it has a somesite link. You have also tried target="_blank".
When this <a>..</a> is clicked, it should act like a normal link and open in a browser (new tab or window). But it opens the this link in the fancybox pop-up instead.
If that's the case then I tried it and the link opened in a new tab.
Please clarify the above doubt of mine.
Thanks.
Try target="_parent" instead of target="_blank"
See following example:
somesite
For a reason, I have to use pop up window instead of modal window. I want the user do everything with the menu I provide inside the pop up window. Unfortunately, I can't disable the default close button (in the right top corner of the pop up window) and I don't want my user to use it.
After I googled it, I found it's impossible to make it disable, but in a forum (I forget the link) I found someone gave a trick to handle it: open the same pop up window when it's closed with that button. He didn't give sample code for it. How to do it? I don't know how to give function in that default close button. Please help.
Any Ideas?
I tried inserting ....({ .....,...., close:false,....}) and nothing.
Thanks in advance.
PS: I will close the modal window when satisfied with $.modal.close();
If you call a modal window as you have indicated {close:false}, the following will happen:
The closeHTML will not be displayed
The user cannot click the overlay to close the dialog
The user cannot press ESC to close the dialog
If you have a button/link in your code with the simplemodal-close class, the user will still be able to press that to close the dialog.
So, based on the information you have provided, if you are using {close:false}, the only other way possible for a user to close the dialog is if you have provided a way for them to. As such, you need to hide, disable, or remove the simplemodal-close class until you are ready for them to close the dialog.
I want to display 2 modal windows containing HTML content with jQuery.
But second modal window must be within the first.
So, here is main page, when I click link it opens first modal window, and then when I click a link in this modal window in opens second modal window.
I tried to do this with qTip, but I can't make second modal window.
I will be appreciate if somebody tells me how can I realize this. Thanks.
To me this sounds like an ui failure - modals within modals are not healthy for a user interface, and thus modal frameworks rarely support it.
If i was you I'd find another design rather than solve this problem programatically
I'd recommend the jQuery UI Modal Dialog, it should allow having two dialogs open at the same time.
qTip allows to open modal in modal.
Something is going wrong with your code.
Post it here and i can give you a solution!