popup

Allow mouse events to pass through semitransparent Popup

别说谁变了你拦得住时间么 提交于 2019-12-07 17:35:54
问题 I'm trying to do a drag-n-drop operation from a control inside a Popup . The content being dragged will be placed at the position of the drop so when the drag starts I want to make the Popup semitransparent to allow placement under it. But so far I fail to make mouse events pass through my semitransparent Popup . The following xaml works fine, the Button is still clickable when hovering the Rectangle with the mouse <Grid> <Rectangle Panel.ZIndex="2" Width="200" Height="200" Fill="Green"

How do I interact with a popup window with Mink, Selenium 2, and Behat?

时光怂恿深爱的人放手 提交于 2019-12-07 17:21:02
问题 I am running through an internal site with Behat and for the most part it is going really well. But the problem is that on certain parts of the site we have popup windows that come up to complete an action. In this case we hit a "Withdraw" button and a popup comes up to have you select a reason and save it. In an ideal world, and if I had actually designed this app, the site wouldn't be using any popup windows. But I am the new guy who is supposed to implement automated functional tests (and

changing text size of popup menu item

大兔子大兔子 提交于 2019-12-07 16:45:48
问题 I want to change the text size of popup menu item. I have written this code to create a popup menu. But my problem is I couldnot access the textView of popupmenu ie"EXIT" so that i could use exitItem.setTextSize(40); //my code popupmenu = new PopupMenu(MainActivity.this, findViewById(R.id.actionbar_item)); popupmenu.getMenu().add(Menu.NONE, 0, Menu.NONE, "Exit"); popupmenu.setOnMenuItemClickListener(this); I have not created any seperate xml file to inflate these items. I want to do it

Opening an external website in a new tab/window/popup

巧了我就是萌 提交于 2019-12-07 15:58:36
I know that clicking on: <a href="http://www.example.com">Click here</a> would quit the current page and go to this address, and that <a href="http://www.example.com" target="_blank">Click here</a> would open it in a new tab (default behaviour in Chrome and Firefox). But how to have a button such that clicking on it would open the external website in a new browser window , possibly 700x500px? (like if you do New window in Chrome menu) You cannot do that with pure HTML - to achieve the result you need JavaScript. <a href="http://www.example.com" onclick="window.open('http://www.example.com',

How do I make this popup box disappear when I click outside?

老子叫甜甜 提交于 2019-12-07 15:24:36
问题 http://jsfiddle.net/mnbayazit/by3zy/2/ I want the popup to disappear when I click somewhere on the background. Problem is, it disappears when I click an [X] or the popup itself. Imagine it being a calendar-picker if that makes my intentions more clear. How can I get it to do that? 回答1: Set a click handler for the body to remove your popup. Set a click handler for the popup itself that calls stopPropagation() on the event, to prevent it from bubbling up to the body. Roughly: function

How to display HTML Content using window.showModalDialog()

那年仲夏 提交于 2019-12-07 13:59:49
问题 Will I be able to display a HTML content (not a file) in a pop up window using JS? I am trying to open a pop up window and display an user defined HTML inside this. I am trying the below, but it doesn't work. window.showModalDialog("<p>Pop up window text</p>","resizable: yes"); Can some one suggest me how to do this? Thanks in advance. 回答1: Contrary to window.open() , the first (URL) argument of showModalDialog() is required. Thus, you can't pass it an HTML string. You can either use window

javascript popup issue In Internet Explorer !

浪尽此生 提交于 2019-12-07 11:33:46
问题 i have Problem with opening popups in javascript i have this function to open my popups in IE6 and IE7: function open_window(Location,w,h) //opens new window { var win = "width="+w+",height="+h+",menubar=no,location=no,resizable,scrollbars,top=500,left=500"; alert(win) ; window.open(Location,'newWin',win).focus(); } it's working . i mean my new window opens but an error occurs. The Error Message is : 'window.open(...)' is null is not an object. do you want to countinue running script on this

Detect Blocked popups without opening a popup

喜欢而已 提交于 2019-12-07 11:21:16
问题 This question has been raised many times on "How to check if the popup is blocked on my browser or not" and all the solutions that i found have proposed a solution where a new popup window is opened for testing. References: "Detect blocked popup in Chrome" "How can I detect if a browser is blocking a popup?" etc. I would like to know if there is any possibility of knowing a blocked popup, without actually opening one. Because due to many reasons the test pop up may take time to close, which

how to display javascript popup in android webview

穿精又带淫゛_ 提交于 2019-12-07 09:48:39
问题 Is it possible to open a javascript popup window on a android webviewer coded like this example from google? and if yes how? I dont want that the original page in the background is closed it has to be a popup like on the picture. Building Web Apps link 回答1: See answers to this question: JavaScript alert not working in Android WebView The answer from Stephen Quan is to just set the default webChromeClient mWebView.setWebChromeClient(new WebChromeClient()); 回答2: You can allow javascript and

python tkinter popup window with selectable text

夙愿已清 提交于 2019-12-07 09:01:20
问题 I want to make popup window using Tkinter. I can do it so: import Tkinter a="some data that use should be able to copy-paste" tkMessageBox.showwarning("done","message") But there is one problem that user need to be able to select, copy and paste shown text. It's not possible to do in such way. Are there any ways to do it with Tkinter? (or another tools that is supplied with python by default) Thanks in advance for any tips 回答1: From here, it seems a workaround using Entry in Tkinter is doable