popup

Changing popup content

◇◆丶佛笑我妖孽 提交于 2019-11-28 01:31:42
问题 I'm opening a popup using popup = window.open(....) and then trying to insert some html into a div in the popup. popup.document.getElementById('div-content').innerHTML = "hello world"; doesn't do anything however, popup.document.getElementById('the-field').value = "Hello There"; changes the content of a field with an id="the-field". Any idea why one is working but not the other? How can i replace the content of the div? hope you can help. EDIT: the popup <!DOCTYPE html> <html> <head> <title

How do you get window.open to work in internet explorer 7?

落爺英雄遲暮 提交于 2019-11-28 01:18:54
I've been trying for the past 3 hours to get my svg web site to open popups, and all I ever get is "Permission Denied" errors in internet explorer. I've tried everything I could find on google, and nothing works. I've even gone to the point of just calling window.open() blank with no parameters, and still get a permission denied error. What is the currently accepted standard for opening popups in internet explorer... that works? This is part of the security changes made in IE6. Now you can only call "window.open" from within a user-initiated event. For example, your code would work inside an

popup open position in chrome

帅比萌擦擦* 提交于 2019-11-28 00:42:19
When I'm using firefox and then using window.open('blah.com','blah','left=-30,top=-300'); , the popup opens in my second display above my first one but in chrome, the popup just opens at left=0,top=0 . Is there a reason why chrome is doing this and how would I fix the problem? Thanks! I think this is a bug in Chrome to be honest but I'm not aware of a fix at the moment as I'm new to JavaScript myself. Sorry I'm sure this not the answer you were looking for. This is a bug in Chrome when the pop-up window is opened on the secondary monitor. The Chrome folks seem to say that this is a security

How to create popup window when browser close

白昼怎懂夜的黑 提交于 2019-11-28 00:35:33
I want to open popup window when browser closed or closed tabs. Dr. Rajesh Rolen window.onUnLoad= function (evt) { //your code goes here window.open("yourpage/some link"); } EDIT NOTE: Now it will be called on onUnload event of browser. Try now Try window.onclose event: Capture event onclose browser https://developer.mozilla.org/en/DOM/window.onclose How to capture the browser window close event? References: http://dotnetacademy.blogspot.com/2010/09/call-function-in-javascript-before.html On below like you can find all events with example of window for javascript: http://www.java2s.com

JComboBox change drop-down popup

橙三吉。 提交于 2019-11-28 00:19:42
basically is popup for a JComboBox displayed below its derived JTextField, how can change direction from bellowed orientations for JComboBox's popup and display JComboBox's popup on the top/over that EDIT: code example for basic JComboBox import java.awt.Dimension; import javax.swing.*; import javax.swing.plaf.basic.BasicComboBoxRenderer; public class HighRowCombo { public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { new HighRowCombo().makeUI(); } }); } public void makeUI() { Object[] data = {"One", "Two with text", "Three with

Can android PopupWindow show another PopupWindow?

让人想犯罪 __ 提交于 2019-11-27 23:45:12
Can android PopupWindow show another PopupWindow? How many PopupWindow can be opened in the same time? Only one? The first PopupWindow is displayed normally. But on button click (which is in the first PopupWindow contentview) i am having an exception: 08-13 16:28:38.682: ERROR/AndroidRuntime(11760): FATAL EXCEPTION: main android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRootImpl$W@41286250 is not valid; is your activity running? at android.view.ViewRootImpl.setView(ViewRootImpl.java:600) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java

Open multiple links in Chrome at once as new tabs

自古美人都是妖i 提交于 2019-11-27 23:41:08
I'm trying to open multiple links at once in Google Chrome in new tabs but it fails. Problems: Blocked by popup Open in new windows instead of tab after the user allowed the popup With this , I can open multiple links at once in Firefox: <!DOCTYPE html> <html ng-app="plunker"> <head> <meta charset="utf-8"> <title>AngularJS Plunker</title> <script>document.write('<base href="' + document.location + '" >');</script> <link rel="stylesheet" href="style.css"> <script data-require="angular.js@1.2.x" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.17/angular.min.js" data-semver="1.2.17"><

Closing child pop-up and refreshing the parent page

旧城冷巷雨未停 提交于 2019-11-27 23:12:36
I am trying to achieve the following. A link on a parent page will open a new child pop-up. In the child pop-up, the user enters some data and clicks “Save”. Data will be saved to database and the pop-up will be closed. The parent window would be refreshed, and the data entered in the child pop-up would be displayed in the parent page. How can this (closing a child pop-up and refreshing the parent page) be done in Javascript? In the pop-up window: <script type="text/javascript"> function proceed(){ opener.location.reload(true); self.close(); } </script> <form onsubmit="proceed()"> ... </form>

how can we disable resizing of new popup window in firefox?

ぐ巨炮叔叔 提交于 2019-11-27 22:31:34
I tried opening a new window using window.open("lookup.htm","lookupWin", "height=400,width=500,resizable=false"); It works fine in IE, but in FF the pop up is still resizable. How can I disable this resizing in FF as well? Read this one from mdc Window functionality features resizable If this feature is set to yes, the new secondary window will be resizable. Note: Starting with version 1.4, Mozilla-based browsers have a window resizing grippy at the right end of the status bar, this ensures that users can resize the browser window even if the web author requested this secondary window to be

Handling a popup window using selenium

旧巷老猫 提交于 2019-11-27 22:26:21
I have a circumstance in which clicking a link webpage opens a popup window. And after the popup window opens the focus is in the popup window and master window is disabled. And i am unable to get the control transferred to the popup window. Please have a look at the following code. driver.findElement(By.linkText("Click me")).click();// when this line of code is reached then a popup window opens. System.out.println("After Clicking me"); // After the popup window opens this line of code is never executed. I am unable to transfer the control from parent window to popup window. I am aware of the