popup

Dialogs and Popups in Android

让人想犯罪 __ 提交于 2019-12-08 15:17:14
问题 The Android design documentation in http://developer.android.com/design/building-blocks/dialogs.html makes a clear differentiation between Dialogs, Alerts, Popups and Toasts. It also recommends the implementation of Dialogs by means of the DialogFragment class and Toasts by means of the Toast class. However it's not clear to me whether Popups should be implemented with PopupWindow or with DialogFragment . I know that DialogFragments usually come with Ok/Cancel buttons and that the location of

How to prevent popup from closing by outside the window click in android?

十年热恋 提交于 2019-12-08 15:04:28
问题 In my activity i'm opening a popup (alert dialog) with yes and no option. But when I click outside the window or anywhere in the screen the popup is dismissed. How can I prevent the popup from closing by clicking anywhere. I want that it should close when I enter No button only. Please help!!! Here is the popup code in MainActivity.java Handler handler = new Handler(); handler.postDelayed(new Runnable() { @Override public void run() { if (context != null) { AlertDialog.Builder alert = new

How to change the text of “Are you sure you want to leave this page?” function script of “onunload”?

血红的双手。 提交于 2019-12-08 13:45:25
问题 How to change the text of this function script?: window.onbeforeunload = function(e) { return 'Are you sure you want to leave this page? You will lose any unsaved data.'; }; i want to translate the text " 'Are you sure you want to leave this page? You will lose any unsaved data.' " so it can say the same but in my language... how to do it? Please help - thanks (when i translate it, it doesnt change in the frontend). Thanks in advance guys! 回答1: unfortunately, changing the message seems to

CKEditor image dialog forms not clickable when in a modal dialog

泄露秘密 提交于 2019-12-08 13:44:36
问题 I am using bootstrap modal popup to open ckeditor. It's working but when I to click the image icon in that dialog opens, but not clickable. 回答1: Using this code. <script> CKEDITOR.replace('help_ldesc'); //CKEDITOR.replace('help_ldesc1'); $.fn.modal.Constructor.prototype.enforceFocus = function() { var $modalElement = this.$element; $(document).on('focusin.modal',function(e) { var $parent = $(e.target.parentNode); if ($modalElement[0] !== e.target && !$modalElement.has(e.target).length && $(e

How to call a html page and make it as pop up window in JavaScript?

瘦欲@ 提交于 2019-12-08 12:22:28
问题 how to call a html page as a pop up window using pure/native JavaScript? Sorry, I'm not so good in Javascript. Please help me. Thank you How can I add your given script into my script? Here's my script: function scanLapVerification() { msgbox("sendRequest: scanLapVerification"); chrome.tabs.sendRequest(tabLapVerification, { method: "scanLapVerification" }, function (response) { msgbox("receiveResponse: scanLapVerification " + jsonToString(response, "JSON")); // maintaining state in the

Switching control between multiple child popups

怎甘沉沦 提交于 2019-12-08 12:22:11
问题 I have a parent window, it has only login fields, i have stored its control using: String parentWindow= idriver.getWindowHandle(); when the login credentials are entered, a new popup(say "popup A") opens and my app runs in it.I have switched the control to this "popup A" using: for (String handle1 : idriver.getWindowHandles()) { idriver.switchTo().window(handle1); } Now, when i click a button in this popup A, a popup opens(say "Popup B"), i again used: for (String handle1 : idriver

Iframe/Popup redirecting opener window

可紊 提交于 2019-12-08 12:20:45
问题 I have a page located at x.com. On this page is a button that, when clicked, will launch a new window (using javascript's window.open() method) to a page that is located at z.com. The popup does a few things, then redirects the original window (the opener, x.com) to a different page based on some parameters defined in the popup. This works fine in Firefox/Chrome, but not in IE. In IE (8 specifically, but I believe 7 also has this problem) the original window (the opener) is not redirected.

How do I let my chrome extension users know when the extension is updated?

我是研究僧i 提交于 2019-12-08 10:03:06
问题 I want to show them a popup with the new features. 回答1: I have submitted an answer and a working code example here chrome extension first run : Detect Chrome extension first run / update You get the version from the manifest.json , you store that into your localStorage . In your background page, you check if your version has been set (via undefined) if it isn't set you know that your extension just installed, otherwise if the versions changed, you know it is being updating 回答2: Store version

Open-Close Modal issue in Internet Explorer

。_饼干妹妹 提交于 2019-12-08 09:45:56
问题 I have a modal window (using bootstrap), with a close button. The modal window opens and closes fine in most browsers. However, in internet explorer, there is a problem. We can open the modal window fine, and close it fine ... but if we try to open it again, it wont. Most of the javascript functionality is in bootstrap. Below is the html for the open button [I believe data-toggle="modal" and data-target="#exampleModal" are the key to opening the window]... <a href="javascript:void(0)" id=

WPF 'Toaster' Popup - How to close?

空扰寡人 提交于 2019-12-08 09:33:09
问题 I'm using the following to create 'toaster' style pop-ups: Create popup "toaster" notifications in Windows with .NET Unfortunately, after the message "disappears", there is still a 'task' in the taskbar. After showing multiple popups, there is a separate 'task' for each popup that was opened, all stacked on top of each other. How can I close these after the opacity animation has completed? 回答1: I wrote my own toast implementation, perhaps you can find use of it! It's very simple, all you do