popupwindow

Problems with IE and appending to the window.opener

只谈情不闲聊 提交于 2019-12-24 15:11:11
问题 I have the following script that works well in Firefox and Chrome (not sure about other browsers), but it doesn't work at all in IE. It basically opens a popup which appends a div to highlight an item in the window opener. I want it to work across multiple pages on the same site, so I didn't want to add a function to create the div in the main window (window.opener). Sorry I couldn't post a working demo - window.opener doesn't work in a bin. <button>Open popup</button> <script type="text

Creating popup window with form content and then show output in parent page and send to database

感情迁移 提交于 2019-12-24 13:14:14
问题 I have a table and in of it's column I want user when click on button that is inside this column pop up window appear which have checkboxes and after user checked checkbox it will be appear as output in same column which were have a button as well as post these values of selected checkboxes and user name to database (PHP). I'm a beginner and i wish anyone help me. help.html code : <html> <head> <SCRIPT LANGUAGE="JavaScript"> myPopup = ''; function openPopup(url) { myPopup = window.open(url,

Bypassing Browser popup blocking when automatic session timeout occurs

不羁的心 提交于 2019-12-24 07:44:17
问题 Please help regarding the following issue. I have enabled the "Block popup" option in browser. We are doing a session validation using a background ajax call to check the session is active or not. If the session is not active for a desired interval a popup window will come for notification. Now comming to the problem . since the session notification popup is comming automatically without any client interaction, This popup is blocked by the browser. But if a client clicks anyother popup window

How would you check if a popup window exists using selenium webdriver?

拈花ヽ惹草 提交于 2019-12-24 05:04:40
问题 I am running link tests on an application and one of the links brings up a login popup window. Is there a way to check for that? I tried treating it like an alert but it didn't work. try { WebDriverWait wait = new WebDriverWait(driver, 2); wait.until(ExpectedConditions.alertIsPresent()); Alert alert = driver.switchTo().alert(); alert.accept(); reportAlertPresent = true; } 回答1: On driver.switchTo().alert() , a org.openqa.selenium.NoAlertPresentException can be thrown, which is an unchecked (i

Why js onunload is invoked when popup page opens?

拈花ヽ惹草 提交于 2019-12-23 20:01:20
问题 According to the documentation (I'm only using Firefox ) : https://developer.mozilla.org/en/DOM/window.onunload The unload event is raised when the document is unloaded. But my code below would trigger the alert even though the child window (i.e. variable name "win") has just been opened , not closed. alert("failed but still reload:" + win.isSuccess); "failed but still reload: undefined" My attention is to invoke that onunload when the child window is closed. What am I doing wrong here?? Code

Opening an external website in a new tab/window/popup

*爱你&永不变心* 提交于 2019-12-23 04:05:59
问题 I know that clicking on: <a href="http://www.example.com">Click here</a> would quit the current page and go to this address, and that <a href="http://www.example.com" target="_blank">Click here</a> would open it in a new tab (default behaviour in Chrome and Firefox). But how to have a button such that clicking on it would open the external website in a new browser window , possibly 700x500px? (like if you do New window in Chrome menu) 回答1: You cannot do that with pure HTML - to achieve the

Make Chrome Extension Popup Window Transparent

ε祈祈猫儿з 提交于 2019-12-22 10:55:56
问题 I am writing a chrome extension. I am wondering if there is a way to make the popup window transparent, that is the user can see the content of the current page even the popup window covers it. Thank you! 回答1: An interesting idea came to me mind yesterday, though you can't remove the white background, you can still mimic a transparent background. This will be done by taking a screenshot of the page right before opening the popup and place it as a background image of the popup. I'm not sure

PopupWindow in jQuery

情到浓时终转凉″ 提交于 2019-12-22 08:55:29
问题 I am in need of a popupwindow with the option of a radio button. I have tested with Impromtu. Is any easy made Popupwindow plugin available? My plugin should work in Internet Explorer, Mozilla and Google Chrome. What would some sample code be? 回答1: jqModal is great and easy-to-use for building Modal Popups and the like. If you want a tutorial on how to build one yourself without jQuery, check out this tutorial. 回答2: Check out Thickbox! You can use a div or so on your page as content (see

Android Popup Window Full Screen

喜欢而已 提交于 2019-12-22 04:42:58
问题 I want to create a popupwindow for fullscreen i've used the following : LayoutInflater inflater = (LayoutInflater) MainActivity.this.getSystemService(Context.LAYOUT_INFLATER_SERVICE); layoutt = inflater.inflate(R.layout.loginto,(ViewGroup) findViewById(R.id.window1)); pwindow = new PopupWindow(layoutt,LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT,true); This covers the action bar but not the full screen.. Also LayuotParams.WRAP_CONTENT is supported by api 11+ . i need the solution to

PopupWindow above Virtual keyboard

孤街醉人 提交于 2019-12-21 07:06:46
问题 I have a PopupWindow that is shown when a user is typing in an EditText. This popup offers him some suggestions. My problem is that when the Popup is shown, a part of it is displayed over the Keyboard on the screen, preventing the user to continue typing. Does anyone know why of this behaviour and how could I fix it? 回答1: To have your popupwindow behind the softkeyboard just set this line: popupWindow.setInputMethodMode(PopupWindow.INPUT_METHOD_NEEDED); and also popupWindow.setFocusable(false