popup

Close all pop-up windows [duplicate]

旧城冷巷雨未停 提交于 2019-12-09 07:18:22
问题 This question already has answers here : Get list of opened popup windows (2 answers) Closed 6 years ago . I know there are many questions of this ilk with many answers. I know that I can use var popup = window.open(''); and can later use popup.close(); to close that window. However, is there a way to close all children without having to store the window.open result? That is, could I do window.open('1'); window.open('2'); window.open('3'); and then somehow do a global "Close" call that will

Chrome extension: detect when popup window closes

℡╲_俬逩灬. 提交于 2019-12-09 02:01:44
问题 For my chrome extension, I want to perform an action when the browserAction popup window closes. I understand that there no built-in events are triggered when this happens. I found this suggestion to open a connection with the background script, and then use the connection's port.onDisconnect event to detect that the popup window is closing. However, when the popup window closes, I see the following error in the Developer Console for the background script: (BLESSED_EXTENSION context for

open new window with php code after form submits results

て烟熏妆下的殇ゞ 提交于 2019-12-09 00:58:35
问题 here is the script that i been working on , it is supposed to integrate user and pass when opened <?php $name = $_POST['name']; // contain name of person $pass = $_POST['pass']; // Email address of sender $link = window.open(https://secure.brosix.com/webclient/?nid=4444&user=$name&pass=$pass&hideparams=1 'width=710,height=555,left=160,top=170'); echo $link; ?> am i doing this right, i want to open a pop up windows after the user submits the form to the php code but i always get an error. 回答1:

Popping up a TextBox on mouse click over a PictureBox for adding custom note to picture

时光总嘲笑我的痴心妄想 提交于 2019-12-08 21:24:37
In my C# winforms application, I have a picturebox which some bitmap images can be loaded into it. What I want to do is if user clicks somewhere within picturebox, at the mouse location a small textbox will be appeared and user can add a custom text (note) to the picture. I know how to write a string into a bitmap file, but I couldnt find a way to POP UP a textbox at mouse location, and automaticly add the text to the image when user wrote something and hit enter key. How this textbox and its properties should be defined? Thanks. You could embed a control in a custom popup form, as shown below

Find all opened Popups in WPF application

痞子三分冷 提交于 2019-12-08 17:58:51
问题 WPF has the Popup class with which you can open a (small) window inside another window. This is used for example for Tooltips or ComboBoxes. I need to find all of these popups which are currently opened inside a WPF window, so I can close them. 回答1: If someone still need: public static IEnumerable<Popup> GetOpenPopups() { return PresentationSource.CurrentSources.OfType<HwndSource>() .Select(h => h.RootVisual) .OfType<FrameworkElement>() .Select(f => f.Parent) .OfType<Popup>() .Where(p => p

Problem with Pop-up Windows using Selenium

馋奶兔 提交于 2019-12-08 17:27:34
I'm new to the testing world, so my question might seem a lil' bit too naive and stupid. At risk of looking/sounding stupid, my question is this: I've been trying to test the contents in a pop-up window on my company's web app. I've figured out how to detect the pop-up window for now, but i can't get selenium to 'click' on the link inside of that pop-up window. there are multiple pop-ups in this web app so it's really difficult for a newbie like to create a test case. I tried the click, clickAndWait, mouseDown and mouseKey as an option but it is still not working. can somebody guide me through

Does the Internet explorer web developer toolbar work with popups?

妖精的绣舞 提交于 2019-12-08 16:41:59
问题 I cannot get the internet explorer web developer tool bar to work with a pop-up, it won't render at the bottom of the pop-up. Any suggestions? 回答1: I am pretty sure it won't work with modal popup windows. If you are opening popups as modal you may have to change the code to mode-less just for debugging purposes. 回答2: There's a very specific way to do this: open the developer tools (via F12 or whatever) in the main browser window. Ensure the developer tools are 'pinned' to this window. Do

Javascript resizing of Firefox pop-up window?

微笑、不失礼 提交于 2019-12-08 16:41:31
问题 I'm just learning Javascript and jQuery, but I'm an HTML'r trying to take the next step.. I'm attempting to drop content into a table, which can be any size at all (It's for a news site). I check for size and then resize the popup accordingly; while the window isn't exactly right it works, but in Firefox it's not even resizing. Using a generic link to pop-open a basic window: <a onclick="window.open('http://site.local/popup/','popup','width=1,height=1')">popup</a> I'm pointing it to a default

Java popup trigger in Linux

和自甴很熟 提交于 2019-12-08 15:55:42
问题 I have an application in which you can do a right mouse button press and drag (as well as a left press and drag for different operations). However, when running this on linux, it seems that popup menus are triggered by a mousePressed and not a mouseReleased. This is resulting in every time I press the right mouse button to perform a drag, the popup menus are triggered (unlike windows, where it is mouseReleased). Any thoughts on how to work around this? thanks. EDIT: Posting code Code for

Alert pop-up not showing

不羁岁月 提交于 2019-12-08 15:46:27
I can’t find the problem with my simple code. The button shows, but the alert pop-up doesn’t show when I click on it. What am I doing wrong? <DOCTYPE! html> <html> <body> <h1>This will be a test for Javascript</h1> <button> onclick=“myFunction()”>I like it</button> <script> function myFunction() { alert(“are you sure?”); } </script> </body> </html> Problem in smart quotes. Use " quotes. <button onclick="ok()">Ok</button> <script> function ok() { alert("ok"); } </script> Al Mobarmig Use "" not “ in your code Try to write your js code before html "button" code. And try also to add a comma in the