Questions tagged [modal-window]

138 questions
19
votes
6 answers

Open a Modal from another modal and close the first (launching) modal

I'm using Bootstrap Modal Window plugin its work fine but i would like to open another model window when i click next and close first one. how can i do it? $('[data-toggle="modal"]').click(function(e) { e.preventDefault(); var…
User
  • 243
  • 1
  • 2
  • 8
19
votes
4 answers

How to display a pdf in a modal window?

I have a modal window, which contains an anchor text. When i click on this link, it must call a pdf housed somewhere else and display it in a pop up . How can I do that ? Kindly help .
The Dark Knight
  • 5,455
  • 11
  • 54
  • 95
7
votes
2 answers

(Capybara) access modal window

I am writing request specs ... I use Capybara... And I am in trouble with some modal windows. What I actually want in my test is to fill in a form that pops up in a modal window. The modal is created with Bootstrap from Twitter…
adritha84
  • 957
  • 1
  • 7
  • 15
6
votes
3 answers

Close ModalWindow on keypress

I would like to be able to close a ModalWindow when the user presses a key, in my case ESC. I have a Javascript listener for the keypress which calls the click event of the cancel button's ID: jQuery("#"+modalWindowInfo.closeButtonId).click(); Is…
SlappyTheFish
  • 2,344
  • 3
  • 34
  • 41
5
votes
4 answers

Fancy box not opening iFrame second time

first post - Hello! I use fancybox (Fancybox homepage) to display modal windows. I'm trying to display a hidden div with an iFrame inside of this div. Works great. The second time you click the link, it doesn't load the iFrame (not a 404 error,…
Djave
  • 8,595
  • 8
  • 70
  • 124
4
votes
5 answers

Click on a button in a Modal Window - Protractor

I'm writing protractor tests for an existing app. I have a button called 'Decline' in a modal window, and I'm trying to click it using: element(by.buttonText('Decline')).click(); But I receive the below error: UnknownError: unknown error: Element…
Praveesh P
  • 1,399
  • 2
  • 25
  • 42
3
votes
1 answer

open a modal window in jsp

I was able to find one solution regarding modal windows, here is the link: Simple jQuery Modal Window Examples. However, what I want specifically is: I want to open b.jsp as a Simple Window Modal, like the one given in that website link above.…
Tom
  • 761
  • 7
  • 22
  • 41
3
votes
1 answer

Can I use an image to trigger a modal window in Bootstrap?

Simple question really. Instead of having a button trigger a modal window, I need to use an image. I can't figure out the code to do it. Any tips?
user2172235
  • 41
  • 1
  • 3
2
votes
1 answer

Minimize all application windows when a modal window gets minimized (on Linux)

I have an application with some windows, and one of them is modal. On Windows OS, when I minimize the modal window all other windows minimize as well. On Linux (I'm using Astra Linux) only the modal window minimizes and all other windows state…
2
votes
1 answer

Unknown HTML tag modal in angular2

I want to create custom modal window referring this link:- http://jasonwatmore.com/post/2017/01/24/angular-2-custom-modal-window-dialog-box When i am using it's showing unknown HTML tag and on console showing error, i.e. Unhandled Promise…
Vikas Gaurav
  • 244
  • 1
  • 6
  • 19
2
votes
2 answers

How to open anchor in a modal window, not a new tab

This site demos Social Sharing code such as 'share to Facebook'. Here, clicking the links on the left opens the sharing in a modal window. Their code:
Dave Chambers
  • 2,483
  • 2
  • 32
  • 55
2
votes
1 answer

how to resolve a function only when model window return promise in angular 2?

on button click I have 3 function which are called in promise one after another. In first function I want blocked model window on which it will return me a promise and on that promise I will resolve next function. the html code is:
2
votes
2 answers

Inno Setup: Color for modal and browse directory windows

Is it possible to change inner background color for modal and browse directory windows in Inno Setup? In my case I want it should be white. UPD: Same behaviour is on the inner pages of Inner Setup, but I've fixed it by setting…
Alexander Smith
  • 369
  • 2
  • 16
2
votes
2 answers

magento product popup

I'd like to create a popup window for products instead of directing to another page. I'm looking for advice on the best way to basically make a copy of the product view template to modify for my needs without having to create separate models and…
dardub
  • 3,166
  • 5
  • 29
  • 31
2
votes
1 answer

AngularJS custom directive breaking with UI Bootstrap modal window

I am having trouble getting a custom directive (one that does autocomplete google places) to work properly inside a ui bootstrap modal window. It works perfectly outside the window. If i put it inside the modal-body div, no suggestions show up. If I…
1
2 3
9 10