popup

auto-complete search suggestion drop-down popup

*爱你&永不变心* 提交于 2019-12-02 03:14:55
Im trying to make a popup div (when a text-box value changes) and it can be closed (visibility: none) by clicking anywhere outside the div. Similar to Google suggestion drop-down. How can I know weather the mouse click has happened inside the div or outside. I need to implement this using javascript and jsp. Please help. The jquery solution would be $("body > div").click(function() { if ($(this).attr("id") == "div-id") { // inside the DIV } else { // not inside the DIV } }); or $("html").click(function (e) { if (e.target == document.getElementById("div-id")) alert("Inside DIV"); else alert(

addEventListener does not work in IE 11

只愿长相守 提交于 2019-12-02 02:47:19
I am using javascript to open a popup and execute some code once it is loaded. This is the code: // Öffnen des Print Popups binden. $('#revi_print').unbind(); $('#revi_print').click(function() { // Popup erstellen. popup = window.open('report_handle/print.php?filter_report=' + $('#revi').data('filter_report'), "Popup", "width=1024, height=768, scrollbars=yes, toolbar=no, status=no, resizable=yes, menubar=no, location=no, directories=no, top=10, left=10"); // Code erst ausführen, wenn das Popup geladen ist. popup.addEventListener('load', handle_popup, false); }); It does work fine in Firefox

WPF: How to auto-size WebBrowser inside a Popup?

送分小仙女□ 提交于 2019-12-02 02:15:00
I have a Popup with a WebBrowser inside (see code below). The WebBrowser have MaxWidth = "800" . I want auto-size the height of WebBrowser to its content height after it load website, so it dont need vertical ScrollBar. I tried set Height = "Auto" or MaxHeight = "5000" , but I dont get right result. Can you help me how to do it? Thank you very much! <Popup Name="popup1" VerticalOffset="3"> <Border BorderThickness="1"> <DockPanel> <ScrollViewer MaxHeight="700" VerticalScrollBarVisibility="Auto"> <WebBrowser Name="wb1" MaxWidth="800"/> </ScrollViewer> </DockPanel> </Border> </Popup> Here is the

Error: Mutating method sent to immutable object for NSMutableArray from JSON file

末鹿安然 提交于 2019-12-02 00:12:42
问题 This seems to be a fairly common problem, but the solutions that I have looked at do not solve the error. I am trying to read an NSMutableArray from a JSON file. Many of the suggestions I have seen involve using mutableCopy or [NSMutableArray arrayWithArray:] but both of these solutions do not fix the problem when using the call replaceObjectAtIndex:withObject: seen below. Please let me know if you have any advice on how to solve this problem. EDIT: I would also like to add that the inventory

IE8 Crashes Strangely on JavaScript Popup

倖福魔咒の 提交于 2019-12-01 22:34:16
问题 I am facing a strange issue after the popup is created onclick . The popup opens up but hangs immediately on IE8 (works fine on all the other browsers including IE6). But on adding the alert box as show in the JavaScript code, the popup works fine. I am using **https** and not **http** and i feel popup is not able to load the JS file because of SSL . Here is the how i am generating the onclick event: <a id="forgotPasswordLink" href="#" onclick="openSupportPage();"> Some Text </a> The onclick

how to make popup windows always on top?

Deadly 提交于 2019-12-01 22:26:43
I want to have a javascript/jQuery popup window (child page) that is always in front of the parent page, something like facebook's current picture viewing feature. it would be closed by the user clicking on the close button. I have tried as below: mywindow = window.open ("DownloadForm.aspx", "mywindow","location=1,status=1,scrollbars=1, width=350,height=150"); mywindow.moveTo(350, 350); this code successfully opened a child page in front of the parent page, but there is jQuery code ( $(#test).click() ) on the parent page which causes the parent page to always be in front. I tried putting the

how to make popup windows always on top?

大城市里の小女人 提交于 2019-12-01 22:02:00
问题 I want to have a javascript/jQuery popup window (child page) that is always in front of the parent page, something like facebook's current picture viewing feature. it would be closed by the user clicking on the close button. I have tried as below: mywindow = window.open ("DownloadForm.aspx", "mywindow","location=1,status=1,scrollbars=1, width=350,height=150"); mywindow.moveTo(350, 350); this code successfully opened a child page in front of the parent page, but there is jQuery code ( $(#test)

Specify Popup location, throughout page navigation

谁都会走 提交于 2019-12-01 21:57:21
Hello I have an issue with positioning a popup, in a WP8 app. My code is that I have instantiated a popup, where the child is a usercontrol, like: Popup CenterPopup = new Popup(); LayoutRoot.Children.Add(CenterPopup); CenterPopup = new UsercontrolElement(); This code would make my UsercontrolElement appear precisely in the middle, as it looks in the design view for the xaml code. The problem is that my UsercontrolElement is a waiting screen that I want to be visible during a page navigation in the back. This is not possible when the Popup is added to the LayoutRoot. If I instead make the popup

how to work with pop ups window in android webview

半城伤御伤魂 提交于 2019-12-01 21:24:41
问题 I am developing browser like application using a Webview for my own understanding. I am not yet clear how to work with pop-ups in android Webview. I came across these methods onJsAlert() , onJsBeforeUnload() , onJsConfirm() etc to handle java script pop ups. from this link and also developer link these work when there is a jsAlert but how do i handle pop-up which opens in new window ? I just want to know is there is any other way to handle pop up for websites in android webview like opening

Error: Mutating method sent to immutable object for NSMutableArray from JSON file

旧巷老猫 提交于 2019-12-01 20:41:07
This seems to be a fairly common problem, but the solutions that I have looked at do not solve the error. I am trying to read an NSMutableArray from a JSON file. Many of the suggestions I have seen involve using mutableCopy or [NSMutableArray arrayWithArray:] but both of these solutions do not fix the problem when using the call replaceObjectAtIndex:withObject: seen below. Please let me know if you have any advice on how to solve this problem. EDIT: I would also like to add that the inventory list is an NSMutableArray of NSMutableArray objects. The exact error reads: Terminating app due to