popup

addEventListener does not work in IE 11

半城伤御伤魂 提交于 2019-12-20 04:11:10
问题 I am using javascript to open a popup and execute some code once it is loaded. This is the code: // Öffnen des Print Popups binden. $('#revi_print').unbind(); $('#revi_print').click(function() { // Popup erstellen. popup = window.open('report_handle/print.php?filter_report=' + $('#revi').data('filter_report'), "Popup", "width=1024, height=768, scrollbars=yes, toolbar=no, status=no, resizable=yes, menubar=no, location=no, directories=no, top=10, left=10"); // Code erst ausführen, wenn das

Getting Value From Popup Window Using only JS & HTML

三世轮回 提交于 2019-12-20 03:54:14
问题 Is it possible to get a value from a popup window? Additionally I would like to use JS and HTML only, i.e. no PHP. Is this even possible? I've seen other posts on here like this one: getting value from popup window but that's in aspx. I have googled a bit and found this link: http://www.bignosebird.com/js/popmap.shtml However, it works on that guys site but not when i copy and paste it, I may be a noob so this is what I have: parent.html <html> <head> </head> <body> <form> <INPUT TYPE="TEXT"

Display Map v2 in popup Window not display in android?

眉间皱痕 提交于 2019-12-20 03:37:05
问题 i want to open the popup window on that i used the map v2 for displaying map v2 in popup window but is not display here i put my xml layout and activity class main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="

WPF: How to auto-size WebBrowser inside a Popup?

*爱你&永不变心* 提交于 2019-12-20 03:12:05
问题 I have a Popup with a WebBrowser inside (see code below). The WebBrowser have MaxWidth = "800" . I want auto-size the height of WebBrowser to its content height after it load website, so it dont need vertical ScrollBar. I tried set Height = "Auto" or MaxHeight = "5000" , but I dont get right result. Can you help me how to do it? Thank you very much! <Popup Name="popup1" VerticalOffset="3"> <Border BorderThickness="1"> <DockPanel> <ScrollViewer MaxHeight="700" VerticalScrollBarVisibility="Auto

how not to lose data when closing and opening chrome extension popup

大憨熊 提交于 2019-12-20 02:36:17
问题 I'm new to chrome extension. I need to have data created when working with the popup, available after closing and re-opening it. Here're some more details about my specific problem: whenever my chrome extension popup is opened a script runs. in the popup there's an option to click a button which will add an item to an array, which is used in order to display this list of items in another tab in this popup. However, since every time the popup is opened the code runs all over again, the array

Specify Popup location, throughout page navigation

痴心易碎 提交于 2019-12-20 02:32:58
问题 Hello I have an issue with positioning a popup, in a WP8 app. My code is that I have instantiated a popup, where the child is a usercontrol, like: Popup CenterPopup = new Popup(); LayoutRoot.Children.Add(CenterPopup); CenterPopup = new UsercontrolElement(); This code would make my UsercontrolElement appear precisely in the middle, as it looks in the design view for the xaml code. The problem is that my UsercontrolElement is a waiting screen that I want to be visible during a page navigation

Open a popup box after receiving result from ajax

时光怂恿深爱的人放手 提交于 2019-12-20 01:14:16
问题 i have a ajax code that works properly and gives the desired result. I want to modify this code and want that when a reply is received from ajax a popup/modal box should get opened. I am able to open popup/modal box on a click of a button <!-- Button trigger modal --> <button class="btn btn-primary" data-toggle="modal" data-target="#bsModal3"> Small Modal </button> <!-- Modal --> <div class="modal fade" id="bsModal3" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden=

Open a popup box after receiving result from ajax

混江龙づ霸主 提交于 2019-12-20 01:14:13
问题 i have a ajax code that works properly and gives the desired result. I want to modify this code and want that when a reply is received from ajax a popup/modal box should get opened. I am able to open popup/modal box on a click of a button <!-- Button trigger modal --> <button class="btn btn-primary" data-toggle="modal" data-target="#bsModal3"> Small Modal </button> <!-- Modal --> <div class="modal fade" id="bsModal3" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden=

How can we count the time of process?

柔情痞子 提交于 2019-12-19 15:33:39
问题 I created a PopupPanel and have shown it. I want to hide it after one minute has passed. During that one minute, the process should not be stopped or paused. How can I achieve this behavior? 回答1: GWT has its own implementation of Timer. Here a really small example: public void onModuleLoad() { final PopupPanel popUp = new PopupPanel(); Label text = new Label("gone in a sec"); popUp.setWidget(text); Timer timer = new Timer() { @Override public void run() { popUp.hide(); } }; popUp.center();

Display confirmation popup with JavaScript upon clicking on a link

左心房为你撑大大i 提交于 2019-12-19 14:51:07
问题 How do I make one of those hyperlinks where when you click it, it will display a popup asking "are you sure?" <INPUT TYPE="Button" NAME="confirm" VALUE="???" onClick="message()"> I already have a message() function working. I just need to know what the input type for a hyperlink would be. 回答1: <a href="http://somewhere_else" onclick="return confirm()"> When the user clicks the link, the confirm function will be called. If the confirm function returns false , the link traversal is cancelled,