showmodaldialog

Modal View using UIModalPresentationFormSheet appears offscreen

六月ゝ 毕业季﹏ 提交于 2019-12-23 19:08:28
问题 I have a UIViewController that implements - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Return YES for supported orientations return (interfaceOrientation == UIInterfaceOrientationPortrait); } Then, I try to popup a modal on top of that view: ModalViewController *modalViewController = [[ModalViewController alloc] init]; modalViewController.modalTransitionStyle = UIModalTransitionStyleCoverVertical; modalViewController.modalPresentationStyle =

How to close SP.UI.ModalDialog from button click in sharepoint?

南楼画角 提交于 2019-12-23 09:36:15
问题 I want to show Confirmation Dialog when user saves any document from EDITForm.aspx. So I have written following JavaScript code. function PreSaveAction() { var _html = document.createElement(); _html.innerHTML = " <input type=\"button\" value=\"Submit\" onclick ='javascript:SubmitDlg();' /> <input type=\"button\" value=\"Cancel\" onclick =\"javascript:CloseDlg();\" /> </td> </tr> </tbody> </table>"; var options = { title: "Confirm", width: 400, height: 200, showClose: false, allowMaximize:

Delphi - detecting if my app has a modal dialog open

微笑、不失礼 提交于 2019-12-22 10:05:00
问题 I have a Delphi 2006 app that pops up a modal alert dialog when an error condition is detected. As the check for the error condition is done in an idle handler, the dialog can pop up over the top of another modal dialog if that one happens to be displayed. This can lead to a confusing situation for the user where the application main form doesn't get focus after the alert dialog is closed because these is another obscured modal dialog. What I would like to do is postpone the alert popups

Removal of the showModalDialog API

99封情书 提交于 2019-12-19 07:55:11
问题 With the impending removal of the showModalDialog API from various browsers, our company like many others who provide large scale enterprise web applications are now faced with a significant dilemma. Whilst we have centralised the calls to showModalDialog down to 3 lines of code, we extensively rely on this code to provide feedback from modal user prompts (a quick search of the solution reveals around 2400 instances). We could rip out showModalDialog fairly easily and replace it with a

Removal of the showModalDialog API

烂漫一生 提交于 2019-12-19 07:55:06
问题 With the impending removal of the showModalDialog API from various browsers, our company like many others who provide large scale enterprise web applications are now faced with a significant dilemma. Whilst we have centralised the calls to showModalDialog down to 3 lines of code, we extensively rely on this code to provide feedback from modal user prompts (a quick search of the solution reveals around 2400 instances). We could rip out showModalDialog fairly easily and replace it with a

Why is window.showModalDialog deprecated? What to use instead?

 ̄綄美尐妖づ 提交于 2019-12-17 04:33:49
问题 I was developing a GreaseMonkey script which used window.showModalDialog . But before finishing it, I have discovered that Firefox 29 warns: Use of window.showModalDialog() is deprecated. Use window.open() instead. For more help https://developer.mozilla.org/en-US/docs/Web/API/Window.open But the problem is that window.open needs UniversalBrowserWrite privilege in order to open a modal window using window.open . Then, why is window.showModalDialog deprecated? Is there any API which doesn't

Chrome 37 has stopped showmodaldialog support.What is use instead of that?

青春壹個敷衍的年華 提交于 2019-12-12 04:46:26
问题 My web application is crashed after launched of Chrome new version(37 and above),since chrome has stopped the support of showmodaldialog .However i need to implement same functionality in my web application. I need some return value from popup same as showmodaldialog .I have designed all the popups page separately and called them from the parent page. 回答1: Chrome started to support <dialog> element. Check this out. http://demo.agektmr.com/dialog/ Polyfill is available as well. https://github

ASP.NET cross domain modal window (window.showModalDialog) - parameter value always “undefined”

我的梦境 提交于 2019-12-11 07:43:46
问题 I have two webpages, parent page .aspx and child page .html. On parent page I have JavaScript function for invoking child page as modal window via window.showModalDialog. function viewCourseModal(url) { var sPars = SomeParameters(); var returnedValue = window.showModalDialog(url, "", sPars); document.getElementById("modalReadyForTest").value = returnedValue; return returnedValue; } On the child page I have the following: <script LANGUAGE="JavaScript"> function closewindow() { window

JS showModalDialog not working in chrome as modal

若如初见. 提交于 2019-12-09 07:20:30
I am using showModalDialog() in my application, for user to view articles from different sources as modal popup. It work fine with FF and IE, but in chrome it's not behaving as modal, I can still go on parent window and click on any element in it. I wanted to make it work same as IE and FF. I have looked at few work-around 1) set onfocus event on parent window, and focus child again on it. <script type="text/javascript"> setInterval(checkFocus, 10); var mywindow; function openModal() { var a = new Array; a[0] = 1; a[1] = 4; mywindow = window.showModalDialog(myurl, a, "dialogwidth: 1000;

JS showModalDialog not working in chrome as modal

旧时模样 提交于 2019-12-08 09:19:36
问题 I am using showModalDialog() in my application, for user to view articles from different sources as modal popup. It work fine with FF and IE, but in chrome it's not behaving as modal, I can still go on parent window and click on any element in it. I wanted to make it work same as IE and FF. I have looked at few work-around 1) set onfocus event on parent window, and focus child again on it. <script type="text/javascript"> setInterval(checkFocus, 10); var mywindow; function openModal() { var a