modal-dialog

Exposing element outside modal-backdrop in CSS Bootstrap jquery modal

余生颓废 提交于 2019-12-07 15:14:18
问题 I'm using CSS Bootstrap's Modal feature, and it's working perfectly. However, I want to add a functionality that while the modal dialog is open and the rest of the web page is covered up by the .modal-backdrop, one of the outside elements from a different place within the scope of the page's structure can be exposed on top of the backdrop: <div id="outside-element"> I want this element exposed even while the modal is active, upon clicking the button in the modal dialog box </div> <div id=

Multiple Swing event-dispatch threads

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-07 15:11:35
问题 I would like to create a new event-dispatch thread in Swing, and I'm having trouble finding any references online for how to do this. I have done this in .NET by creating a new thread and calling Application.run(...). Has anyone done this? Is it possible in Swing? FYI the reason I am trying to do this is because I am writing an Eclipse plug-in, and I would like to pop up dialogs that are not modal to the IDE but that are modal (blocking) to my UI logic. I could accomplish this using non-modal

TinyMCE and JQuery dialog: TinyMCE read only when modal:true in the Dialog

自古美人都是妖i 提交于 2019-12-07 14:04:28
问题 I am using the TinyMCD plugin in the Dialog plugin. Everything works fine, until I set the dialog's modal parameter to true. When I am doing that, the TinyMCE textarea works fine only the first time the dialog is opened and then becomes read only. Here is the example of my code: tinyMCE.init({ mode: 'none' }); var dlgComments = $('#dlgInternalComments'); if (dlgComments.length == 0) { dlgComments = $('<div/>').attr('id', 'dlgInternalComments'), txtAreaComments = $('<textarea/>').attr('id',

Mixing MFC and WPF: Modal Dialogs

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-07 12:39:14
问题 I'm adding C# WPF dialogs to an existing C++ MFC app, using a C++/CLI interface layer. I've got things working, except I'm having a problem with modality. For example: MFC app shows a WPF dialog using ShowDialog. Works as expected. That WPF dialog shows a MFC dialog using DoModal. The WPF dialog is hidden behind the base C++ app, and is not disabled unless I manually change IsEnabled. Not ideal, but it works. Now, that MFC dialog is closed. Now for some reason the base MFC app is enabled,

zclip not working within bootstrap modal

你。 提交于 2019-12-07 12:32:12
问题 I'm using the clean example code provided by zclip page: $('a#copy-dynamic').zclip({ path:'js/ZeroClipboard.swf', copy:function(){return $('input#dynamic').val();} }); and this is the HTML: <a href="#" id="copy-dynamic" class="">Click here to copy the value of this input:</a> <input type="text" id="dynamic" value="Insert any text here." onfocus="if(this.value=='Insert any text here.'){this.value=''}" onblur="if(this.value==''){this.value='Insert any text here.'}"> It works fine if the HTML is

Opening AngularJS modal causes page to shift if scrollbar exists

[亡魂溺海] 提交于 2019-12-07 07:25:25
问题 I am creating an AngularJS modal that pops up when I hover over a menu element. The problem I have is when the current page has a scrollbar the modal causes the scrollbar for the main page to disappear, which then causes the background behind the modal to shift to the right, and when the modal closes the body shifts to the left. When the modal opens it adds the class "modal-open" to the body. I can add the "modal-body" to my css file for the page, and define it as such: .modal-open{ margin

Expression has changed error on Opening a Modal Popup inside a component

白昼怎懂夜的黑 提交于 2019-12-07 07:03:16
问题 I have a parent component and i am passing some HTML from it to a child common component using @ViewChild(). When Child component loads up a popup. Console throws below error. "ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'ngIf: undefined'. Current value: 'ngIf: this is description'. It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?" I

Swing modal dialog refuses to close - sometimes!

▼魔方 西西 提交于 2019-12-07 04:38:01
问题 // This is supposed to show a modal dialog and then hide it again. In practice, // this works about 75% of the time, and the other 25% of the time, the dialog // stays visible. // This is on Ubuntu 10.10, running: // OpenJDK Runtime Environment (IcedTea6 1.9) (6b20-1.9-0ubuntu1) // This always prints // setVisible(true) about to happen // setVisible(false) about to happen // setVisible(false) has just happened // even when the dialog stays visible. package modalproblemdemo; import java.awt

Disable Text Field Autofocus in Javascript

瘦欲@ 提交于 2019-12-07 03:04:00
问题 Is there a way in Javascript to forcibly disable text field autofocus on page load? I know of the focus() method, but not how to disable it. My actual problem is that autofocusing in a modal window forces the window to appear with the scrollbar halfway down already and scrolled to the first input field, whereas I would like to disable this entirely. Thanks! 回答1: You can use .blur() , var elelist = document.getElementsByTagName("input"); for(var i = 0; i < elelist.length; i++){ elelist[i].blur

Visual Studio Express 2012 annoying pop-up dialog on thrown exception

痴心易碎 提交于 2019-12-07 02:20:10
问题 Problem description: Whenever an exception is thrown and not catched a dialog pops up. I want Visual Studio Express 2012 just to break and stop grabbing all my input with this modal dialog window. Example of the dialog: Wanted solution: VS 2010 does not show this annoying pop-up window but something called exception assistant. How an I can get the same type of break on exceptions in 2012 as in 2010? Even if that's not possible I really want the pop-up to be gone while keeping the break.