popupwindow

Rselenium - Popup

浪子不回头ぞ 提交于 2019-12-21 05:29:08
问题 I want to download a file from a website using RSelenium, with Firefox browser. I do everything correctly (navigate, select the correct element and write what I want); now I click the "download" button, then a firefox popup opens and ask me if I want to download the file or "open with..." something else. Unfortunately I cannot write an example due to privacy constraints. My question is: how can I switch to the popup window / alert and click "OK" when needed? I tried the following methods with

Call JavaScript of parent window from child window

北城余情 提交于 2019-12-21 04:36:10
问题 I have a calendar and when I click on a <td> , a pop-up window appears so you can create your evenement for the date you selected. I want to add a feature. When the user finishes creating the event, I want to send a JavaScript request to the parent page so I can refresh the calendar using AJAX. Basically, I want to call a function from the child, but the function is on the parent page. On Google, I only found a script that can refresh the parent window – nothing about a “parent callback”. ☹

Android ListView's setOnItemClickListener from PopupWindow not called

∥☆過路亽.° 提交于 2019-12-21 03:53:48
问题 I'm trying to show a ListView from a PopupWindow. but when I'm try to call ListView's setOnItemClickListener nothing to haapen. Here It Java file PopupWindowActivity.java public class PopupWindowActivity extends Activity { String[] data = { "DATA 1", "DATA 2", "DATA 3", "DATA 4", "DATA 5", "DATA 6" }; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.a); final Button

Android ListView's setOnItemClickListener from PopupWindow not called

风流意气都作罢 提交于 2019-12-21 03:53:13
问题 I'm trying to show a ListView from a PopupWindow. but when I'm try to call ListView's setOnItemClickListener nothing to haapen. Here It Java file PopupWindowActivity.java public class PopupWindowActivity extends Activity { String[] data = { "DATA 1", "DATA 2", "DATA 3", "DATA 4", "DATA 5", "DATA 6" }; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.a); final Button

window.open to center of screen

蹲街弑〆低调 提交于 2019-12-20 12:34:27
问题 I am using window.open to open a popup window like so: <a href="http://path/to/url" onclick="window.open(this.href, 'sharegplus', 'height=485,width=700'); return false;" target="_blank"> I want this to be centered in the screen, but without having to use <script> inline code </script> and merely enter whatever I need within onclick="" . Can this be done? 回答1: Edit This is a bad answer. a much better answer can be found here: window.open() on a multi-monitor/dual-monitor system - where does

How to make items clickable in list view?

一曲冷凌霜 提交于 2019-12-20 10:46:46
问题 I have been trying to search for a solution, but with very little success. I have to display a pop up window containing a list of items. I was able to display the window but onitemclicklistener is not being called upon clicking an item in the list view . Any help with this issue would be greatly appreciated. Thanks Edit1: public class PopUpWindowActivity extends Activity { /** Called when the activity is first created. */ String[] countries = new String[] { "India", "USA", "Canada" }; public

Ruby with Watir: Handling javascript popup window

与世无争的帅哥 提交于 2019-12-20 05:58:11
问题 I have a problem with watir and javascript popup window here's my test script require 'watir' browser = Watir::Browser.start "/url/" browser.link(:text, /Add New Blog/).wait_until_present browser.link(:text, /Add New Blog/).click // Here is where the javascript window popup window = browser.ie.Document.ParentWindow browser.window(:title, /Blog/) do browser.text_field(:id, /text title of Blog/).set 'Watir' browser.select_list(:id, /dropdownlist type/).select ("News") browser.button(:value,

Handling events from a Kendo MVC Grid's PopUp editor window

大城市里の小女人 提交于 2019-12-20 05:35:36
问题 I have a Kendo MVC grid that I am creating with the Html.Kendo().Grid helper. When the PopUp editor window opens, I want to catch the event and run a bit of javascript. When I configure a normal kendo window with .Events, the events fire properly and my function runs. However, when I code the .Events property on the .Editable.Window of the grid, the events do not fire. @(Html.Kendo().Grid<FooRecord>() .Name("cFooGrid") .Columns(c => { c.Bound(f => f.Foo); c.Bound(f => f.Bar); c.Bound(f => f

Popup window in C#.net

六眼飞鱼酱① 提交于 2019-12-20 04:16:22
问题 How to popup a child form when I click the button. I want to child winform to be in the centre of the screen and the whole background screen should be blurred. and a small close button should be visible in the right corner of the form. I have searched the web but found nothing. Using Winforms. 回答1: Make a new windows form. it has a close button by default. Set it default position to center screen. Then on your button click. Lets say your new form is Form2 Form2 frm = new Form2(); frm

Window.opener in Microsoft Edge undefined when running at localhost

本秂侑毒 提交于 2019-12-20 03:40:09
问题 I'm using Microsoft Edge in localhost for development. Website is accessed via http://localhost I open a popup and want it to post a message to the opener via window.opener.postMessage My code works with Chrome, and Safari, and even Microsoft Edge when the website is on staging or production. But when I run in in local mode, the window.opener is undefined. 回答1: CORS on localhost is tricky so try to create a domain name you like to your hosts file (%windir%\System32\Drivers\etc\hosts) - if you