popup

Firing events on a popup window (ExtJS)

前提是你 提交于 2019-12-12 01:18:42
问题 we're currently developing an application that makes extensive use of popup windows(*) and have run into an issue on IE (this has been reported before but I couldn't find any solution). The problem is this: our main window M opens a popup window P and keeps a reference to it. P then registers an event handler on an object in M . When the event fires, IE8 bombs out with the following error message: JScript object expected ext-all-debug.js (Line 1735, Char 17) Code: 0 which is the fire-function

how define z-index of some popup windows?

天大地大妈咪最大 提交于 2019-12-12 01:12:20
问题 i have 4 popup windows -> width:100% and height:100% is there a way to define z-index of those popup windows? i want to show their parent at top of it's childs! how can i do that? two of my popup windows are like this : <script type="text/javascript"> window.open('http://www.MyPoPup1.com', '_blank', 'location=no,menubar=no,scrollbars=yes,resizable=no,toolbar=no'); window.open('http://www.MyPoPup2.com', '_blank', ''); </script> thanks in advance 回答1: You can use the Focus() method <script type

Only show filled attributes in leaflet popups (and not “null”-attributes)

倖福魔咒の 提交于 2019-12-12 00:44:59
问题 My leaflet map shows polygons from a GeoJSON file. This file has several attributes (attribute_1, attribute_2, etc.). However, some are filled with text and some are empty. How can I only show the attributes which are filled with text in my popup and not the empty ones? Using my code beneath every attribute is shown and if it's empty "null" is shown in the popup: // Integrate GeoJSON and style polygons $.getJSON("klimagutachten_2001.geojson",function(klimagutachten){ L.geoJson( klimagutachten

How to access the username out of a ng-repeat

☆樱花仙子☆ 提交于 2019-12-12 00:32:38
问题 I have a list of users generated with ng-repeat and data from db, which works fine. Now when you click on a user, you get a popup box. I would like to display the name of the selected user in this popup box, but I don't know how to access the username because the ng-repeat does not take place in the popup box. Note that I work with angular material Part of my html code: <!-- START SIDEBAR --> <div id="logo-wrap"> <img id="logo" src="assets/images/logo2.png" alt="Zazzle Logo" > </div> <div id=

Jquery popup menu no stick with header

青春壹個敷衍的年華 提交于 2019-12-12 00:20:06
问题 I have a right side button in my header. When click the button, a popup list menu will display. But when I scroll down the page, header is scroll down. But the popup menu is keep stick at top. How to I make popup menu stick with header? Below is my code. <html> <head> <title>My Page</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.css" /> <script src="http://code.jquery.com/jquery

how to get x and y coordinates of user tap/touch relative to window - android titanium mobile?

可紊 提交于 2019-12-11 23:54:49
问题 Can any one tell how to get x and y coordinates of user tap/touch relative to window - android titanium mobile?? I need to add a popup view close to tableviewrow when the user select a row. How to determine the x,y (top/left) positions? 回答1: you can use row.addEventListener('click',function(e){ alert('left:'+ e.x + ' top:'+ e.y); }); where row is an object of Titanium.UI.TableViewRow. For other objects (like window/view), you can use same eventlistener. But remember one thing: it gives the co

How to create a fullscreen size popup in Windows phone

有些话、适合烂在心里 提交于 2019-12-11 23:42:14
问题 Fullscreen I mean the popup usercontrol covers the whole cellphone screen, maximize. can this be done? thx! 回答1: You can get the current width and height by Content.ActualHeight/Width property here's a code snippet public void showPopUp() { //get heigth and width double height=Application.Current.Host.Content.ActualHeight; double width = Application.Current.Host.Content.ActualWidth; //child content StackPanel stk = new StackPanel(); stk.Height = height; //set height stk.Width = width; //set

Jquery problem with appending and binding in the same time

我是研究僧i 提交于 2019-12-11 23:14:25
问题 I'm working on a fine rolldown select solution for my website. I made an <a name="iwanthereanid" class="popper">Click Here!</a> link. By clicking on it I call a popup() function. $(".popper").click(function() { popup($(this)); }); In the popup() function i check was this already opened? No? Lets make a div and fill it with things by fillwiththings() . function popup(where) { if (where.hasClass("on")) { where.removeClass("on"); where.next("div").remove(); } else { where.addClass("on");

UWP / WinRT: Detect when a popup is about to be closed

拜拜、爱过 提交于 2019-12-11 23:04:15
问题 How can I detect when a popup is about to be closed? The Popup class does not have a Closing event in UWP, unlike in WPF where such an event exists. I need this in order to persist the state of the Popup because the layout can be modified by the user. 回答1: As you already know, there is no Closing event. You might get lucky by registering to IsOpen property change (if IsLightDismissEnabled property is set to true...) this.popup.RegisterPropertyChangedCallback(Popup.IsOpenProperty, (d, e) => {

Selenium Webdriver - (Java) - working with HTML dialogs

我是研究僧i 提交于 2019-12-11 22:26:24
问题 Here is the situation: Click on Import file button (this action will upload a file). After file upload, then appears a popup (HTML popup). I used driver.switchTo().frame(1); to switch to that popup and click "Next" in that popup. Clicking Next will navigate user to second step in that popup. Click process commission button in that second step of popup. After clicking process commission button, then appears a new confirmation popup (HTML popup). I am not able to click yes in that confirmation