popup

Background blur with CSS

▼魔方 西西 提交于 2019-11-26 08:03:30
问题 I want an Vista/7-aero-glass-style effect on a popup on my site, and it needs to be dynamic. I\'m fine with this not being a cross-browser effect as long as the site still works on all modern browsers. My first attempt was to use something like #dialog_base { background:white; background:rgba(255,255,255,0.8); filter:blur(4px); -o-filter:blur(4px); -ms-filter:blur(4px); -moz-filter:blur(4px); -webkit-filter:blur(4px); } However, as I should have expected, this resulted in the content of the

JavaFX 2 custom popup pane

[亡魂溺海] 提交于 2019-11-26 06:40:14
问题 The JavaFX 2 colour picker has a button that pops up a colour chooser pane like so: I\'d like to do something similar, in that I\'d like a custom pane to pop up when the button is clicked on and disappear when something else is clicked (in my case, a few image thumbnails). What would be the best way of achieving this? Should I use a ContextMenu and add a pane to a MenuItem somehow, or is there something else I should look at? 回答1: It's kind of difficult to do well with the current JavaFX 2.2

Popup window to return data to parent on close

你说的曾经没有我的故事 提交于 2019-11-26 06:35:48
问题 I\'ve got a popup window opened using window.open() . What I want now is for a user to be able to click one of 2 links within this new window: \"Allow\" or \"Don\'t Allow\". When a user clicks one of those links the \'popup\' window should close, and return either \"allow\" or \"don\'t allow\" or something along those lines, true / false would do, to the parent window. Is it possible? If so, how? Code: var authWindow = window.open(\'auth.php\', \'authWindow\', \'options...\'); Then just 2

Open page in new window without popup blocking

感情迁移 提交于 2019-11-26 06:06:36
问题 Hope you can help a bit here... I have a form that translate a word in a field, populate the field with the translated term and then do submit action all in one submit button. the submit is being made by jquery. problem is the target page is being blocked as all 3 major browsers treat it as popup, Do you know how to let it open just as a new tab or new window ? I don\'t want to set the target as _self as I want people to have my site open as well. I believe the problem is in this string:

How to display input errors in popup?

橙三吉。 提交于 2019-11-26 04:59:46
问题 I want to show all my validation error\'s of EdiText fields in a popup as shown in below image: As far as I know Android has drawables: 1) popup_inline_error.9.png 2) popup_inline_error_above.9.png 3) indicator_input_error.png I am able to display the red error indicator inside the right side of the EditText by using: Drawable err_indiactor = getResources().getDrawable(R.drawable.indicator_input_error); mEdiText.setCompoundDrawablesWithIntrinsicBounds(null, null, err_indiactor, null); Now

is it possible to open a popup with javascript and then detect when the user closes it?

旧街凉风 提交于 2019-11-26 04:39:39
问题 The question is pretty much all in the title. Is it possible (and how?) to open a popup with javascript and then detect when the user closes it? I am using jquery within the project so a jquery solution would be good. Cheers! 回答1: If you have control over the contents of the pop-up, handle the window's unload event there and notify the original window via the opener property, checking first whether the opener has been closed. Note this won't always work in Opera. window.onunload = function()

How can I move a WPF Popup when its anchor element moves?

 ̄綄美尐妖づ 提交于 2019-11-26 04:39:12
问题 I have a Popup defined like this: <Popup Name=\"myPopup\" StaysOpen=\"True\" Placement=\"Bottom\" PlacementRectangle=\"0,20,0,20\" PlacementTarget=\"{Binding ElementName=myPopupAnchor}\"> <TextBlock ... /> </Popup> I have added event handlers to the myPopupAnchor element for the events MouseEnter and MouseLeave . The two event handlers toggle the popup\'s visibility. My problem is the position of myPopupAnchor is only read when the popup is first shown, or hidden and then shown again. If the

Display UIViewController as Popup in iPhone

不问归期 提交于 2019-11-26 04:33:09
问题 Since there is no complete, definitive answer to this common recurring question, I\'ll ask and answer it here. Often we need to present a UIViewController such that it doesn\'t cover full screen, as in the picture below. Apple provides several similar UIViewController , such as UIAlertView , Twitter or Facebook share view controller, etc.. How can we achieve this effect for a custom controller? 回答1: NOTE : This solution is broken in iOS 8. I will post new solution ASAP. I am going to answer

override css for html5 form validation/required popup

余生颓废 提交于 2019-11-26 04:21:27
问题 How can I override the default popup for a required field on a HTML5 form? Example: http://jsfiddle.net/uKZGp/ (make sure you click the submit button to see the popup) The HTML <form> <input type=\"text\" name=\"name\" id=\"name\" placeholder=\"Name*\" required=\"required\" /> <input type=\"submit\" /> </form> NOTE: You must view this with a HTML5 browser like Google Chrome or FireFox. This link doesn\'t solve my question but it might make someone think outside of the box: http://www.the-art

How to handle login pop up window using Selenium WebDriver?

时光毁灭记忆、已成空白 提交于 2019-11-26 03:55:13
问题 How to handle the login pop up window using Selenium Webdriver? I have attached the sample screen here. How can I enter/input Username and Password to this login pop up/alert window? Thanks & Regards, 回答1: Use the approach where you send username and password in URL Request: http://username:password@the-site.com So just to make it more clear. The username is username password is password and the rest is usual URL of your test web Works for me without needing any tweaks. Sample Java code: