popup

How to remove auto focus/keyboard popup of a field when the screen shows up?

不打扰是莪最后的温柔 提交于 2019-11-27 00:04:52
问题 I have a screen where the first field is an EditText, and it gains the focus at startup, also popups the numeric input type, which is very annoying How can I make sure that when the activity is started the focus is not gained, and/or the input panel is not raised? 回答1: InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(editTextField.getWindowToken(), 0); or set activity property in manifest file as below in the application

HTML / CSS Popup div on text click [closed]

 ̄綄美尐妖づ 提交于 2019-11-26 23:50:10
I want to make popup div instead of popup window for my 'About' picture/page with current button like in this example: coder DEMO In the content area you can provide whatever you want to display in it. .black_overlay { display: none; position: absolute; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; z-index: 1001; -moz-opacity: 0.8; opacity: .80; filter: alpha(opacity=80); } .white_content { display: none; position: absolute; top: 25%; left: 25%; width: 50%; height: 50%; padding: 16px; border: 16px solid orange; background-color: white; z-index: 1002; overflow: auto; }

Hide div 24hr cookie javascript? [closed]

一世执手 提交于 2019-11-26 23:40:16
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I would like a simple JavaScript code that will allow me to hide a certain div element when clicked for a predefined amount of time.

How to create popup window when browser close

会有一股神秘感。 提交于 2019-11-26 23:26:08
问题 I want to open popup window when browser closed or closed tabs. 回答1: window.onUnLoad= function (evt) { //your code goes here window.open("yourpage/some link"); } EDIT NOTE: Now it will be called on onUnload event of browser. Try now Try window.onclose event: Capture event onclose browser https://developer.mozilla.org/en/DOM/window.onclose How to capture the browser window close event? References: http://dotnetacademy.blogspot.com/2010/09/call-function-in-javascript-before.html On below like

Launch Mailchimp evil popup onclick

六月ゝ 毕业季﹏ 提交于 2019-11-26 23:21:36
问题 Styling <link href="//cdn-images.mailchimp.com/embedcode/classic-081711.css" rel="stylesheet" type="text/css"> <style type="text/css"> #mc_embed_signup{position:absolute; top:0; left:0; width:100%; height:100%; background-color:rgba(0,0,0,.8);display:none;z-index:10000; } #mc_embed_signup form{position:fixed; top:10%; left:50%; width:50%; margin-left:-25%; font:normal 100% Helvetica,Arial,sans-serif; font-size:14px; border-radius:4px; border:none; padding:10px 20px; background-color:#fff;

Can android PopupWindow show another PopupWindow?

妖精的绣舞 提交于 2019-11-26 23:21:08
问题 Can android PopupWindow show another PopupWindow? How many PopupWindow can be opened in the same time? Only one? The first PopupWindow is displayed normally. But on button click (which is in the first PopupWindow contentview) i am having an exception: 08-13 16:28:38.682: ERROR/AndroidRuntime(11760): FATAL EXCEPTION: main android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRootImpl$W@41286250 is not valid; is your activity running? at android.view

In Google Chrome, how do I bring an existing popup window to the front using javascript from the parent window?

人走茶凉 提交于 2019-11-26 23:15:27
问题 I would like to have a button on a web page with the following behavior: On the first click, open a pop-up. On later clicks, if the pop-up is still open, just bring it to the front. If not, re-open. The below code works in Firefox (Mac & Windows), Safari (Mac & Windows), and IE8. (I have not yet tested IE6 or IE7.) However, in Google Chrome (both Mac & Windows) later clicks fail to bring the existing pop-up to the front as desired. How can I make this work in Chrome? <head> <script type="text

Javascript detect closing popup loaded with another domain

青春壹個敷衍的年華 提交于 2019-11-26 22:40:41
问题 I am opening a popup window and attaching an onbeforeunload event to it like this: win = window.open("http://www.google.com", "", "width=300px,height=300px"); win.onbeforeunload = function() { //do your stuff here alert("Closed"); }; If I leave the URL empty, the new popup opens with "about:blank" as the address but when I close it, I see the alert. If I open in as you see it (with an external URL), once it's closed, I cannot see the alert anymore. Any idea why this is happening? 回答1: As

change url of already opened popup

倾然丶 夕夏残阳落幕 提交于 2019-11-26 22:17:12
问题 Is it possible to change the url of the popup. Assume I open a popup: function pop1(){ window.open('http://google.com','wind1'); } Can the url of the popup window 'wind1' be changed to say 'http://msn.com'. Something with location.href or any other solution. 回答1: var w1 = window.open('http://www.canop.org','wind1'); w1.location.href='http://www.google.com'; 回答2: in the new popup window use this : $(document).ready(function(){ window.parent.location="http://www.google.com" }) 回答3: For me, as I

How to open a WPF Popup when another control is clicked, using XAML markup only?

扶醉桌前 提交于 2019-11-26 22:14:25
问题 I've got two controls, a TextBlock and a PopUp. When the user clicks (MouseDown) on the textblock, I want to display the popup. I would think that I could do this with an EventTrigger on the Popup, but I can't use setters in an EventTrigger, I can only start storyboards. I want to do this strictly in XAML, because the two controls are in a template and I don't know how I'd find the popup in code. This is what conceptually I want to do, but can't because you can't put a setter in an