modal-dialog

presentModalViewController does nothing

≡放荡痞女 提交于 2019-12-04 09:52:37
I have a UIViewController ( parent ) that calls presentModalViewController with another UIViewController ( child ) on viewDidLoad . If parent doesn't have a UINavigationController, then presentModalViewController does nothing. If it has a UINavigationController, then presentModalViewController shows child as expected. Is this the standard behavior of presentModalViewController or is there something else at play here? It is because you are presenting it in viewDidLoad , try presenting it in viewDidAppear . Debug your app and look if the child-view isn't nil, if it's nil then it's not standard

iOS 6: Parent modal's modalPresentationStyle ignored after rotation

Deadly 提交于 2019-12-04 08:49:34
问题 With iPad with iOS6, we have this bug where a modal view controller will expand to full screen, even if it is told to be using "form sheet" presentation style. But, this happens only if there are two modals, a parent one and its child. So this is how the first modal is created and presented: UINavigationController *navigationController = [[[UINavigationController alloc] initWithRootViewController:controller] autorelease]; navigationController.modalPresentationStyle =

The button didn't get fired while clicked on the modal-box

﹥>﹥吖頭↗ 提交于 2019-12-04 08:41:50
[ Assign a Textbox Value to the modal-box on the same page has been answered] NEW QUESTION: Why the button on the modal-box didn't get fired while I've clicked the button? Am I missing something? I've added the code to handle the click event on the server side: Protected Sub Save_Button_Click(sender As Object, e As System.EventArgs) Handles Save_Button.Click //The code goes here End Sub Pls see the code below with the marked line. I have the code below to show the modal-box after a LinkButton clicked. And, what I want to do is how to assign the Textbox value with the. I have a gridview: <asp

Why do JS modal message boxes pause countdown on setTimeout()?

℡╲_俬逩灬. 提交于 2019-12-04 08:33:54
I have encountered an unexpected behavior of JS setTimeout when modal dialog windows like alert are open and I would like to know the reason behind it. I expected setTimeout(fn,10000) to mean "check current time periodically and when it is greater than Now + 10000ms fire the event handler that will invoke the passed 'fn' function". This would be logical, seeing how we pass the timeout measure as 'ms from now'. But, apparently, the countdown on setTimeout is a literal countdown and will be paused while a modal window is open. setTimeout(function(){ //alert A alert("10 seconds have passed for

showModalDialog; Opens a New Window in IE

守給你的承諾、 提交于 2019-12-04 08:09:27
Please see update (11/27) below I have a modal window that is launched with it's content in an iframe (ASP webforms application). We need to have the modal redirect to another page, but it cannot be within the iframe due to security reasons (Paypal processing page). In Chrome and IE standards mode, we have code that properly changes the modal's URL to the right one. However in compatibility mode, the redirect causes a new modal window to open with the correct URL. How can we stop it from opening a new window and actually redirecting? This is our current code: dialog.redirect = function

Bootstrap Modals & Youtube: Autoplay and Stop on Close

只愿长相守 提交于 2019-12-04 07:36:07
I need to be able to autoplay a youtube video when a Twitter Bootstrap modal is opened and subsequently stop that video on close. I know this question has been asked before, but the answers I can find would lead to a LOT of javascript code for a page that contains MANY videos and I am trying to cut down on the bloat. So far I have the following working for individual videos, but the issue is that each modal and each video must have this javascript code repeated with the proper variables. $('#vidThumbnail-1').click(function () { var src = 'http://www.youtube.com/embed/8bKmrhI-YT8?&autoplay=1';

How do I add a reusable modal dialog in Angular?

一笑奈何 提交于 2019-12-04 07:22:23
I'm new to Angular and attempting to implement this solution into my project. It looks painfully easy, however, I'm trying to make this into a re-usable element so that I can call it from anywhere and just pass in the content to be shown (otherwise, what's the point?). So, my specific question is: assuming I already have a controller that's bound to some DOM element and it has a feature that goes and fetches some factory driven $http call and upon the response I wish to notify the user via this dialog of something, how do I combine *this directive and *this controller with my existing one and

how can i handle an event to open a window in react js?

浪子不回头ぞ 提交于 2019-12-04 06:54:53
I want to open a window after clicking the fshare My render() return is like this <Modal.Footer> <img src="/static/img/fshare.png" onClick={this.fbShare} /> <Button onClick={this.hide}>Close</Button> </Modal.Footer> I am creating a function fbShare: function(event) { }, And I want to add the following code inside the function that basically opens a new window to share in Facebook: window.open('https://www.facebook.com/dialog/feed?app_id=xxxxxxxxe='sharer', 'toolbar=0,status=0,width=548,height=325');" target="_parent" href="javascript: void(0)"> But i am confused with how to handle this event.

custom modal dialog with dynamic template - angular material

左心房为你撑大大i 提交于 2019-12-04 06:31:51
问题 I'm trying to implement a modal dialog with a dynamic component and custom template. I'm able to implement the same however the dialog opens 'n' times. (first call 1 dialog, 2nd call 2 dialog and so on) The modal will be opened any other component with the HelperService injected and by calling the openModal() method with a component as parameter. Sorry for a lengthy post. ./custom-modal.component.ts @Component({ selector: 'custom-modal', templateUrl: './custom-modal.component.html' }) export

video.js inside a modal window: full screen not working

本秂侑毒 提交于 2019-12-04 06:25:56
问题 I've been using video.js to show stuff inside a modal windows, as you can see here: http://www.csdalbenga.it/galleria1.html by clicking on the "Clicca qui per visionare il video della recita!" button. So, here's the problem: video works fine, but the full screen button will just make the video fill the modal window, so basically nothing happens or there's a slight size change depending on the browser. Now I was wondering, is there a way to force the video to full screen? Otherwise I guess I