popup

Close popup window

点点圈 提交于 2019-11-30 11:55:41
I have a popup window which is opened using this code: function _openpageview(fieldid,objectid,opennew) { var url='/s_viewpagefield.jsp?fieldid='+fieldid+'&codedid='+objectid; web_window = window.open(url,'_blank', 'menubar=yes,location=no,scrollbars=yes,width=800,height=600,status=no,resizable=yes,top=0,left=0,dependent=yes,alwaysRaised=yes'); web_window.opener = window; web_window.focus(); } How can I close that popup from within the popup? window.close(); self.close(); web_window.close(); all did not work molokoloco An old tip... var daddy = window.self; daddy.opener = window.self; daddy

Windows 10 : naming programs main.exe cause them to show pop up

元气小坏坏 提交于 2019-11-30 11:08:08
On windows 10 when we create a program named main.exe or rename a program to main.exe , the program will show a pop up as seen here : There is 2 different pop up than can be shown : -the game bar one (French and English version): -the screenshot one : (In English: Press Win + Alt + PrintScreen to take a screenshot) I originally discovered the problem while using python and cx_freeze, I have tested this on multiple programs, including (as seen above) renaming notepad++.exe to main.exe , and each time, one of the pop up was there, We can also note that the pop up appears alternatively (one game

How do I pop up a custom form/dialog in a Greasemonkey script?

眉间皱痕 提交于 2019-11-30 10:15:41
I have been working on a script to use as a plugin in Firefox, and have come across the need to pop up a custom form when a certain button is clicked. I need to be able to create the entire form myself and then parse the entered data to render images on the original site. How do I do this? Okay, here is a complete script example, showing how to pop up a form and interact with its controls. Note that it uses jQuery -- which makes it vastly easier/shorter/simpler. // ==UserScript== // @name _Form, popup example // @include http://stackoverflow.com/* // @require http://ajax.googleapis.com/ajax

How can I check for an open URL in another window?

一世执手 提交于 2019-11-30 10:00:48
This is a follow up to my last question Open a window if the window does not already exist Essentially, I am now keeping a list of all the window references that have been opened by a page, and only allowing them to be opened if they are not already open. Then a potential problem struck me - it is of course possible for a user to shut down the original window, and open it again, thus losing the list of window references. Is it possible to loop through the windows open in a browser, checking for a particular URL? Edit: After a lot of helpful comments here (and on the other question), here is

Open a new popup window and post data to it

£可爱£侵袭症+ 提交于 2019-11-30 09:41:14
I'm using jQuery to open a popup and I'd like to send it data using the post method when it opens. Can anyone help me, thanks in advance. I am currently passing the data using the get method so the data is a part in url, but I don't want the data to be visible in the url. function openWindow(){ var name = $('#name').val(); var url = 'popup_window.php?name='+name; window.open( url, 'popUpWindow', 'height=400, \ width=650, \ left=300, \ top=100, \ resizable=yes, \ scrollbars=yes, \ toolbar=yes, \ menubar=no, \ location=no, \ directories=no, \ status=yes'); } Barmar This is based on the answer in

Wait for a user event [duplicate]

北慕城南 提交于 2019-11-30 09:21:07
问题 This question already has answers here : How do I return the response from an asynchronous call? (36 answers) Closed last year . I'm developing a javascript class (with jQuery) to create custom popup, but I can not figure out how to "pause" the script to wait for user response (click on the OK button or cancel) the class is like this: function Popup() { } Popup.Show = function(text) { var _response; /* code to draw the popup elements*/ $("#button-ok").on("click",function() { _response = "ok!"

iOS 8 : Keyboard Extension. Issue with adding pop up of keys

♀尐吖头ヾ 提交于 2019-11-30 09:15:33
I am building my Keyboard Extension app and i have added key pop animation on button when user tap on it. It works fine for inside image but for top row image pop up area become hidden as it clip the subview. I tried with ClipToBound property and set as False. But still not working. Anyone have any idea how to fix this? adding subview on superview also not works. Image A is showing correct pop up as it is inside frame of keyboard. Image B is wrong as pop up clip inside frame. I don't think you are allowed to display anything outside of the keyboard view; it will get automatically clipped.

How to add a submenu entry to Eclipse Package Explorer context menu item using org.eclipse.ui.menus?

末鹿安然 提交于 2019-11-30 08:22:18
问题 I am trying to add a submenu entry to an item from the context menu of the Eclipse Package Explorer. The menu entry is already defined via org.eclipse.ui.popupMenus in another plugin, not in the one that I am working at. (That plugin is added to the dependencies list of my plugin). There are also items added in its submenu, but also using org.eclipse.ui.popupMenus, and I am trying to do this via org.eclipse.ui.menus. To begin with, I did the following: I added org.eclipse.ui.commands and org

Displaying PDF's in jQuery PopUp

自作多情 提交于 2019-11-30 07:39:26
问题 I was wondering if anyone knows how to display PDF's in jQuery using Fancybox/Lightbox, etc? I have tried with no success! 回答1: For fancybox v1.3.x, having this HTML: <a class="pdf" href="sample.pdf">open pdf file</a> use this script: $(document).ready(function() { $(".pdf").click(function() { $.fancybox({ 'width': '70%', // or whatever 'height': '90%', 'autoDimensions': false, 'content': '<embed src="'+this.href+'#nameddest=self&page=1&view=FitH,0&zoom=80,0,0" type="application/pdf" height=

popup window blocked in ajax success handler

末鹿安然 提交于 2019-11-30 07:14:45
I am trying to open a popup window to allow a user to authenticate with twitter without having to leave the page they are viewing. I have seen this technique used around the web, particularly with the Disqus commenting application. However, I am only able to get two results, either a 'Popup window blocked' message or nothing even happens. I have tried using the approaches outlined here and here . How can I fix this? My code currently looks like: var windowSizeArray = [ "width=200,height=200", "width=300,height=400,scrollbars=yes" ]; var url = $('.twitter_popup').attr("href"); var windowName =