showmodaldialog

Auto close modal dialog - After server code is done, close dialog in Google Spreadsheet

 ̄綄美尐妖づ 提交于 2019-12-06 22:51:12
问题 I have a Google Sheet that runs some Apps Script server code to connect to an SQL server. I want to show the message "loading..." in the modal dialog while data is being refreshed. I can get the modal to pop up, but I want to auto-close the dialog as soon as the code is finished. An example I have set up is: function testpop () { var htmlOutput = HtmlService .createHtmlOutput('<p> This box will close when the data has finished loading.</p>') .setSandboxMode(HtmlService.SandboxMode.IFRAME)

Delphi - detecting if my app has a modal dialog open

牧云@^-^@ 提交于 2019-12-06 09:27:57
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 while the app has any Modal dialogs open. I tried GetLastActivePopup (MyMainWindow.Handle) but it seems to

Display popup confirmation message with MVC C# after postback

大憨熊 提交于 2019-12-06 03:26:33
问题 Using MVC Framework with C# coding. The views are written in standard HTML code. I require a confirmation message saying "Your message has been sent" once the user clicks the submit button Here is the controller: public ActionResult Index(ContactViewModel contactVM){ if (!ModelState.IsValid) { string url = Request.UrlReferrer.AbsolutePath+ "#contact"; return View(); } else { var contact = new Contact { Name = contactVM.Name, Email = contactVM.Email, Subject = contactVM.Subject, Message =

Auto close modal dialog - After server code is done, close dialog in Google Spreadsheet

情到浓时终转凉″ 提交于 2019-12-05 03:50:04
I have a Google Sheet that runs some Apps Script server code to connect to an SQL server. I want to show the message "loading..." in the modal dialog while data is being refreshed. I can get the modal to pop up, but I want to auto-close the dialog as soon as the code is finished. An example I have set up is: function testpop () { var htmlOutput = HtmlService .createHtmlOutput('<p> This box will close when the data has finished loading.</p>') .setSandboxMode(HtmlService.SandboxMode.IFRAME) .setWidth(250) .setHeight(200); SpreadsheetApp.getUi().showModalDialog(htmlOutput, 'Loading...'); sleep

Display popup confirmation message with MVC C# after postback

血红的双手。 提交于 2019-12-04 07:58:22
Using MVC Framework with C# coding. The views are written in standard HTML code. I require a confirmation message saying "Your message has been sent" once the user clicks the submit button Here is the controller: public ActionResult Index(ContactViewModel contactVM){ if (!ModelState.IsValid) { string url = Request.UrlReferrer.AbsolutePath+ "#contact"; return View(); } else { var contact = new Contact { Name = contactVM.Name, Email = contactVM.Email, Subject = contactVM.Subject, Message = contactVM.Message }; new Email().Send(contact); return RedirectToAction("Index"); } Here is the View:

how do i work with showmodal in FMX?

≯℡__Kan透↙ 提交于 2019-12-04 06:08:26
问题 i am trying to create a login form to my main android form, so i do something like this var CanGo: Boolean; begin Application.Initialize; Application.CreateForm(TForm1, Form1); loginfrm := Tloginfrm.Create(nil); try loginfrm.ShowModal; CanGo := loginfrm.LoginSuccess = true; finally FreeAndNil(loginfrm); end; if CanGo then Application.Run; end. i been doing this in win32 application and its working just fine , when i try to do the same way on android application stopped on touchscreen and wont

Return a value from window.open

房东的猫 提交于 2019-12-03 04:25:27
问题 We recently discovered that Chrome no longer supports window.showModalDialog which is problematic because our enterprise application uses this method. There is, apparently, a short term workaround that allows you to restore showModalDialog but it involves modifying the registry which is too complicated (and risky) four our average user. Therefore I'm not a big fan of this workaround. The long term solution is obviously to remove all calls to this obsolete method and replace them with a

Return a value from window.open

馋奶兔 提交于 2019-12-02 18:23:16
We recently discovered that Chrome no longer supports window.showModalDialog which is problematic because our enterprise application uses this method. There is, apparently, a short term workaround that allows you to restore showModalDialog but it involves modifying the registry which is too complicated (and risky) four our average user. Therefore I'm not a big fan of this workaround. The long term solution is obviously to remove all calls to this obsolete method and replace them with a convenient jQuery plugin (such as VistaPrint's Skinny Modal Dialog plugin , for example. Other suggestions

how do i work with showmodal in FMX?

北战南征 提交于 2019-12-02 10:18:05
i am trying to create a login form to my main android form, so i do something like this var CanGo: Boolean; begin Application.Initialize; Application.CreateForm(TForm1, Form1); loginfrm := Tloginfrm.Create(nil); try loginfrm.ShowModal; CanGo := loginfrm.LoginSuccess = true; finally FreeAndNil(loginfrm); end; if CanGo then Application.Run; end. i been doing this in win32 application and its working just fine , when i try to do the same way on android application stopped on touchscreen and wont show login form , is Show modal is different on android ? what iam doing wrong ? There are lots of

Removal of the showModalDialog API

醉酒当歌 提交于 2019-12-01 05:56:34
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 Javascript/css based alternative, that's not a problem. The issue we face is that all of the calling code