modal-dialog

When are modal dialogs truly necessary?

我怕爱的太早我们不能终老 提交于 2019-12-29 06:17:07
问题 Modal dialogs are evil, but I keep reading "You should remove modal dialogs when possible " When isn't it possible to remove modal dialogs? I mean, what are some truly modal tasks that force us to use evil modal dialogs? The most common given example is the "Do you want to Save?" I think this is the problem of the concept of having the user hit Save instead of remembering that user input is sacred . If you just saved automatically with the ability to "undo" or have revisions, then you don't

Bootstrap 3 - open modal from another modal

时光怂恿深爱的人放手 提交于 2019-12-29 04:23:08
问题 Is it possible in Bootstrap 3 to open modal from another modal ? I have modal windows with content loaded from external html files. I'm opening the modal window. There I have a form to submit. After clicking the submit button I would like to go to the next step with a new modal window (and a new content from another html file). As far as I know you can't have two modal windows simultaneously, so I have to close the first modal and then open the second one. The problem is I have to do after

Google map modal issue

余生颓废 提交于 2019-12-28 22:20:33
问题 I am trying to display google map into the Twitter bootstrap modal. When user first click on the button Show map then he is able to see the map successfuly as i am generating the map onclick() function but when he closes the modal and reopen it then the map doesnot show properly and 90% part of the map goes grey like following I even try this workaround that remove that whole div in which the map is bind and regenerate it but that trick doesnot work too kindly let me know how can i resolve my

how to close a bootstrap modal with the browser back button instead of going back a page?`

試著忘記壹切 提交于 2019-12-28 06:28:05
问题 I have found this an issue with smartphones and it can relate to desktops. We have 'modded' our bootstrap modal to be responsive, however when displayed on a smartphone it is in full screen, the user assumes the modal is a page and clicks back to 'close' it. We have included the in the top right X but would also like the back button to close the modal. Anyone have any ideas? Thanks 回答1: Easiest way is to make user feel that its pop-up or model not a new page, by using some margins or making

how to know whether modal boxes (alert, prompt, confirm…) have been disabled in javascript?

自作多情 提交于 2019-12-28 04:15:11
问题 I have a private web based app where sometimes I genuinely ask to the users what they want to do in given situations. To do so, I'm using the confirm function of javascript. As any other modal box, after a few popups the user has the choice to disable them by simply clicking the little box as showed below: The problem is that, if they clicked it once, they never see other messages and responses to confirm are assumed 0 , which is confusing because basically it means that all the actions

ASP.NET MVC modal dialog/popup best practice

老子叫甜甜 提交于 2019-12-28 03:32:06
问题 I am looking for the most standard way to achieve modal dialogs in ASP.NET MVC. An example of what I am trying to do is when I select an item from my "list" page, I want the "details" page to be a popup over the list and NOT a new page. I'm not looking for a hack. I want it to be a solution that follows the ASP.NET MVC pattern. I would also prefer not stepping outside jQuery and ASP.NET Ajax (no plugins UNLESS it is emerging as a best practice). 回答1: Lunchy's dialog suggestion is nice. Just

How to get IE9 standards support for dialogs opened by HTA?

不打扰是莪最后的温柔 提交于 2019-12-28 03:14:09
问题 I'm translating some of my old HTAs from Quirks to IE9 standards. However, it seems that modal and modeless dialogs opened by HTA don't support IE9 standards mode. Test dialog: <!DOCTYPE html> <html> <head> <title>TestDialog</title> <meta http-equiv="x-ua-compatible" content="ie=9" /> </head> <body> <svg> <circle cx="100" cy="100" r="50" fill="#0f0" /> </svg> </body> </html> In the HTA main page: <button onclick="showModalDialog(...)">Modal</button> <button onclick="showModelessDialog(...)"

Android: wait on user input from dialog?

浪尽此生 提交于 2019-12-28 01:52:08
问题 I would like to implement a method that displays a dialog, waits until the dialog is dismissed, and then returns a result depending on the dialog contents. Is this possible? public String getUserInput() { //do something to show dialog String input = //get input from dialog return input; } I am actually trying to implement an interface which has method "public String getUserInput()", where the returned String must be retrieved via dialog. This is easily done in java, seems impossible in

jQuery modal dialog and jqGrid

冷暖自知 提交于 2019-12-27 11:45:45
问题 How can I use the Jquery modal confirmation with jqGrid? Say when I will submit my entries it will pop up a modal dialog and display the names with the message for sending to server.. My approach $("#dialog-confirm").dialog({ autoOpen:false, resizable:false, height:180, modal:true, buttons:{ 'Confirm': function(){ var ids =jQuery("#list10").jqGrid('getGridParam','selarrrow'); $.ajax({ type: "POST", url: "url&names="+ids, data: JSON.stringify(ids), dataType: "json" }); }, 'cancel': function(){

jquery-ui-dialog - How to hook into dialog close event

孤街浪徒 提交于 2019-12-27 11:39:55
问题 I am using the jquery-ui-dialog plugin I am looking for way to refresh the page when in some circumstances when the dialog is closed. Is there a way to capture a close event from the dialog? I know I can run code when the close button is clicked but that doesn't cover the user closing with escape or the x in the top right corner. 回答1: I have found it! You can catch the close event using the following code: $('div#popup_content').on('dialogclose', function(event) { alert('closed'); });