popup

WPF Popup not causing application to be focused when clicked on

早过忘川 提交于 2019-12-10 12:36:10
问题 I have a control that is using a popup with some WPF controls inside of it, and StaysOpen="True". The problem is when clicking on the popup when the application doesn't have focus, the application does not receive focus. I've done a bit of research, and it seems like this may be due to the fact that popups are meant to be used for menus, so they don't have all of the proper windows message handlers hooked up. Here is a barebones sample to demoing the problem: <Window x:Class=

Custom UI: Popup in iOS Objective-C

陌路散爱 提交于 2019-12-10 12:22:13
问题 I want to create a custom popup and I want to generate a code dynamically without using UI drag and drop. The view should look like: I am using the following code to call the popup : CustomPopUp *cp = [[CustomPopUp alloc]init]; cp.view.frame = CGRectMake(0.0, 0.0, 300, 300); KLCPopup* popup = [KLCPopup popupWithContentView:cp.view]; [popup show]; The custom popup code looks like: - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; self.gaScreenName = @"Login"; if

How to change size of popup box in jquery fancy box v2.1.4? [closed]

∥☆過路亽.° 提交于 2019-12-10 12:18:37
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I am using jquery fancy-box v2.1.4 (see the fancybox website here). Fancybox is working fine, but I am having trouble changing the size of pop up window. How can I control the size of the fancybox popup window?

Redirect popup on main window close

霸气de小男生 提交于 2019-12-10 12:05:32
问题 A pop up is opened when a user clicks a button. This pop up will go to a holding page, and wait for the user to leave the website or close the browser. Then when the user leaves or closes the browser, it will redirect the pop up location to a different site. I have tried several variants of the following code: win=window.open('google.com','popup'); //just to illustrate the "win" = my window.open(). $(window).bind('beforeunload', function() { window.win.location.href="http://the-new-location

JQuery-mobile pop up/ dialog box?

微笑、不失礼 提交于 2019-12-10 12:03:12
问题 I am building an app for mobiles, using jquery mobile framework. I want to be able to make a simple dialog box/pop up, so that when you click on a picture of a "question mark" the pop up/ dialog box would appear with a simple message. I have tried different approaches from http://jquerymobile.com/test/docs/pages/dialog-alt.html to so many others. I couldnt get non of them to work. So If you know how to make a simple pop up or a simple dialog box could you please give me an example! 回答1: If

Selenium waitforpopup

我与影子孤独终老i 提交于 2019-12-10 11:42:35
问题 How to stop the selenium server until a popup opens? We have selenium.waitForPageToLoad to stop the server until the Page Loads. But is there any way to stop it for Popup? I tried it with selenium.WaitForPopup , but I can't find popup id. Because I created a popup box with div element(whose id is popup_container). And I tried the following code: selenium.WaitForPopUp("id=popup_container", "30000"); But that doesn't work. Any help? 回答1: Your 'popup' is not actually a popup, it's just a div tag

ComboBox with Checkboxes closes on Checkbox Click

夙愿已清 提交于 2019-12-10 11:39:21
问题 I have this same problem, but the solution presented isn't working, nor is any other I've found. I want to create a ComboBox with CheckBox es as part of the ItemTemplate . This has been accomplished. But the problem arises when the user clicks a CheckBox : the PopUp closes. I need it to stay open. I tried handling the ComboBox.SelectionChanged event and the CheckBox.Click event, but I can't get it. From tracing through the code, it appears that the SelectionChanged event doesn't fire at all

Transparent Google Map on PopupWindow?

偶尔善良 提交于 2019-12-10 11:37:52
问题 I have used a Google Maps (V2) in a PopupWindow and when I run the application, the map is not displayed. Even the area where it should be is fully transparent and I can see the activity below the PopupWindow through it. Any idea why this is? Fragment inside popup_window.xml <fragment android:id="@+id/popup_alert_map" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_below="@+id/popup_alert_description" android:layout_marginTop="10dp" class="com.google

Leaflet popup.update() Resizing Solution - Recreating a Popup Everytime, Unable to Click Embedded URL

断了今生、忘了曾经 提交于 2019-12-10 11:19:59
问题 I applied a popup.update() code snippet provided by @ghybs that works very well to adjust the popup to fit within the frame of the map, as you can see the code here: document.querySelector(".leaflet-popup-pane").addEventListener("load", function (event) { var tagName = event.target.tagName, popup = map._popup; console.log("got load event from " + tagName); if (tagName === "IMG" && popup) { popup.update(); } }, true); The problem is that I embedded a url in the thumbnail for each popup. When I

how to pass div value to window.open?

不打扰是莪最后的温柔 提交于 2019-12-10 11:16:46
问题 I'm trying to pass a DIV to a new window. JavaScript function openWin() { myWindow=window.open('','','width=200,height=100'); } HTML <div id="pass">pass this to the new window</div> <a href="#" onclick="openWin();">click</a> Can someone help me out? 回答1: I think you want this: var divText = document.getElementById("pass").outerHTML; var myWindow = window.open('','','width=200,height=100'); var doc = myWindow.document; doc.open(); doc.write(divText); doc.close(); (Demo at jsfiddle.net) 回答2: