modal-dialog

appendChild doesn't work correctly in IE

和自甴很熟 提交于 2019-11-28 01:23:33
问题 I am trying to create a simple Modal window, but IE isn't cooperating. When I call this function in IE, the content appears at the bottom of the page under all content and the overlay image does not appear. Here's the code: function applyOverlay(src) { var my_overlay = document.createElement('div'); my_overlay.setAttribute('id','myoverlay'); var doc_height = document.body.scrollHeight; my_overlay.setAttribute('style','text-align:center; position:fixed; top:0px; left:0px; background-image:url(

UWP ContentDialog Invocation

断了今生、忘了曾经 提交于 2019-11-28 01:03:37
问题 I am using UWP and Template 10 to build a GUI app by following MVVM pattern. As a part of application I need to invoke a content dialog by pressing button on Main Page. So separate ContentDialog was created in standalone .xaml file for that purpose: <ContentDialog x:Class="UWP1.Views.Speech" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:UWP1.Views" xmlns:d="http://schemas.microsoft.com/expression

Modeless form that still pauses code execution

左心房为你撑大大i 提交于 2019-11-28 00:18:17
Is there anyway to have a userform that acts modeless, while still pausing code execution like a modal form? I'd like the userform to show, but still allow interaction with the parent program. Modal forms block interaction with the parent program. A modeless form would work, but I would like the code execution to pause while the form is up. I've worked around this by creating an infinite loop that checks if the form is visible, but that seems a bit hacky. Public Sub GetFormInfoAndDoStuff ufForm.show vbModeless Do while ufForm.Visible DoEvents Loop ' Do other stuff dependent on form End Sub

Dismiss modal view changes underlying UIScrollView

[亡魂溺海] 提交于 2019-11-28 00:04:41
问题 There must be something basic that I am missing here. I have a UIScrollView open, which is controlled by a customer UIScrollViewController (called DataController). At a certain point in time, input from the user is needed, so I open a modal UIViewController from the DataController: ElementSelectController *viewController = [[ElementSelectController alloc] initWithNibName:@"ElementSelectController" bundle:nil]; viewController.modalTransitionStyle = UIModalTransitionStyleCoverVertical;

Passing data between two ViewControllers (delegate) - Swift [duplicate]

旧街凉风 提交于 2019-11-28 00:00:39
This question already has an answer here: Passing Data between View Controllers 42 answers I have two ViewController's. FirstVC - I have label and button with segue "modal" SecondVC - I have PickerView and button (back to FirstVC): @IBAction func bntback(sender: AnyObject) { self.dissmissViewControllerAnimatied(true, completion: nil) } And I created delegate in SecondViewController as: protocol SendDataDelegate { func sendData(text:String) } Next: class SecondVC: UIViewController, UIPickerViewDataSource, UIPickerViewDelegate { var delegate: SendDataDelegate! var firstvc = FirstVC() var arr = [

Can you add a toolbar to QDialog?

亡梦爱人 提交于 2019-11-27 23:41:38
问题 I'm working on a project that needs to call a modal window with a toolbar to do some work on some data before it's loaded. The reason I need the toolbar is the user has a few different possible options that can be combined. The obvious choice here is a Modal dialog (which I have working right now). The issue is I want a toolbar. This is a two part question: Is it possible to add a toolbar to a QDialog ? (also is it possible to do this in Qt Designer?) If 1. is not possible, how can I make a

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

余生长醉 提交于 2019-11-27 23:23:11
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 Easiest way is to make user feel that its pop-up or model not a new page, by using some margins or making it span10 offset1 kind of. Another way around is Open and Close method which is described here And the best

Passing MySQL data to Modal Form via PHP

白昼怎懂夜的黑 提交于 2019-11-27 22:52:40
问题 I am attempting to use modal as a simple means for users to edit data in a MySQL db. It appears that only the first line retrieved in my SELECT statement is available to modal and I do not understand why. In other words, imagine a table with several columns, the first being a customer's name. My goal is to be able to click a name, show a modal with a form, and then pass the results of that form to update the db using PHP. No matter which name I click, though, only values related to the first

Fake modal dialog using Show?

守給你的承諾、 提交于 2019-11-27 22:47:22
问题 My application have several modules, each in one tab on the mainform. When using a dialog it is convenient to call ShowModal because you know when the dialog is finished. But for the user it is not good as it lock the whole program until the dialog closes. I want to have a locally modal dialog. So one module can open a dialog and it locks current module only. The user can still switch to another module and continue to work. If the user return to the first module the dialog is there waiting

ASP.NET MVC Authorize Attribute to launch a modal?

社会主义新天地 提交于 2019-11-27 21:25:43
问题 I am working on a site that makes use of jquery modal dialogs to do various things like logging in and such. However; we have one slight issue with the use of these.. which is we are using the [Authorize] attribute on a lot of our action methods and so what is happening is if the user is not logged in and hits a route that they need to be authorized for it shows the login page like it is suppose to but obviously this is suppose to be a modal. Anyhow long story short, is there a way to create