popup

close icon doesn't appear

落花浮王杯 提交于 2019-12-11 15:39:15
问题 I was trying to add a text popup box on my page, and this code helped me but I need to add a close icon (which is an image in my code).. but it doesn't work :/ here is my code: function show_hide_box(an, width, height, borderStyle) { if (navigator.userAgent.indexOf("MSIE") != -1) { var browserIsIE = true; } else { browserIsIE = false; } var href = an.href; var boxdiv = document.getElementById(href); if (boxdiv != null) { if (boxdiv.style.display=='none') { move_box(an, boxdiv); boxdiv.style

Remove “null” attributes in Leaflet popups with an if-statement

三世轮回 提交于 2019-12-11 15:24:03
问题 I am using external geojson attributes to fill my popup windows in Leaflet, like this: function popUp (feature, geojson) { var popupText= "/*Name:*/" + feature.properties.name + "/*Amount*/" + feature.properties.amounts; geojson.bindPopup(popupText); }; The problem: some of the amounts are "null". So, how do I write an if statement, so that if an amount is "null" then both the string ("Amount") and the attribute ("null") don't show up in the popup? 回答1: What you are looking for is a

Creating popup in C# [closed]

浪尽此生 提交于 2019-12-11 15:09:27
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . I want to create a popup in C# where there will be three dropdowns populated with values from Database, user will select the values and on click of Submit button on Popup the values the parent page will get updated as per the selected values.how to do it, can someone help me ? 回答1: You have to

jQuery mobile popup is not closing

。_饼干妹妹 提交于 2019-12-11 15:03:44
问题 sorry for not supplying a fiddle, I can't get it set up there. However, I use the following code to programatically open and close a popup. Only that it doesn't close and stays open. What am I doing wrong? <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" /> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> <script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.js"><

StayOpen=“False” with inherited popups

微笑、不失礼 提交于 2019-12-11 14:38:12
问题 I have a popup modal that is using StaysOpen="False" to automatically close when you click outside of the popup. However the popup contains buttons that open new popup windows and I want to keep the parent popup (the one using the StaysOpen attribute) open. Currently what is happening is you click a button inside the popup and new popup appears, the parent one stays open (which is intended). But when you close one of the child popups the parent one closes. I need the parent popup to only

JQuery dialog box before closing browser window

左心房为你撑大大i 提交于 2019-12-11 14:35:39
问题 I understand from other posts that the only way to handle this is through a browser dialogue box that can't be edited. What I am having a problem with is that box appearers no matter how I leave the page. The page has a save and delete button that are the correct ways to leave the page and I don't want the dialogue box to appear for them. Here is the JQuery I have $(document).ready(function(){ //save or delete window.onbeforeunload = function() { var message = 'You have unsaved changes,

Using JavaScript to create a Chrome-style alert

帅比萌擦擦* 提交于 2019-12-11 12:40:06
问题 How do I create an alert in Chrome using JavaScript that opens a text box in the middle of the browser window and washes out the background, like so: rather than an alert that just pops up an entirely new window (in my case in the Linux Mint GTK theme): If I type alert() into the console, I get an alert that looks like the latter, in a separate window. 回答1: You should use the dialog element. Something like this: HTML: <dialog> This is a dialog.<br> <button>Close</button> </dialog> Javascript:

Slight loading delay with chrome extension popup

强颜欢笑 提交于 2019-12-11 12:27:31
问题 For some reason, I have a very small delay when I click my extension before the popup is loaded. It's a 1-2 second hiccup before the popup displays, while all my other extensions display the popup html immediately. As you can see above, there is even the loading cursor animation when I click the popup, which never happens for the other extensions. Here is my popup html: <!doctype html> <html> <head> <script type="text/javascript" src="popup.js"></script> <title>Add a website to block</title>

Javascript - text field submits to a popup window

断了今生、忘了曾经 提交于 2019-12-11 11:55:48
问题 I need to have this logic ( textfield ) (submit button) Person enters a string of numbers/letters - if its right; a popup window happens showing a pdf. if its wrong validation happens and they are presented with an error message I have gotten this to work as a DROP DOWN >> to >> PDF POPUP. But that wont work. Can anyone help me with this -- spent way to make hours getting the drop to pop working and need to change directions. note: needs to work in wordpress page + template. <form style=

jQuery target different window/popup

陌路散爱 提交于 2019-12-11 11:34:28
问题 I have jQuery open a popup: function idealPopUp(str){ var url = str; var windowName = "idealPopUp"; var windowSize = 'height=820,width=784,toolbar=no,scrollbars=yes'; window.open(url, windowName, windowSize); event.preventDefault(); } can I, from the original window, have jQuery target that popup? I want to know when it closes. The content of the popup is from another site and I have no control over it's jas/html etc. I have this in the original window to try and talk to the popup: $(document