popup

Popup/Overlay screen in android honeycomb

自古美人都是妖i 提交于 2019-12-20 10:56:02
问题 I would like to achieve a popup/overlay screen like Places (i`m more interested how can i place that screen for example in the right/left side of the screen ) in the android maps application (image below). I can create an activity and use the Dialog theme, this mostly resolve my problem, but it placed center in the screen. Somebody have any better idea how i can create a popup/overlay screen like the places in a non-map application and place to top/right of the screen ?. My guess they did it

Js popup when leaving page but not when submitting form

梦想与她 提交于 2019-12-20 07:31:53
问题 I use this code on my website to display a warning message in a popup when a user trie to leave the page: <script type="text/javascript"> window.onbeforeunload = confirmExit; function confirmExit() { return "Si vous quittez ou actualisez la page, vous perdrez votre tutoriel"; } </script> However, this is on a page with a form. When the user submits the form, the popup appears which doesn't make sense. How can I modify this code so the popup appears only when the user leaves the page in every

Can an iOS app have a custom design for the phone call pop-up alert?

≡放荡痞女 提交于 2019-12-20 07:26:08
问题 The program has a button, and after button is tapped, it goes to the system dialler to make the call to the 'phone number. 回答1: Assuming you are talking about making a phone call using a tel: or telprompt: URL, then no. There is no way to customize the user experience. 来源: https://stackoverflow.com/questions/41153217/can-an-ios-app-have-a-custom-design-for-the-phone-call-pop-up-alert

Popup Window stopped working after jQuery update

一个人想着一个人 提交于 2019-12-20 07:11:00
问题 I have been using this script for a while now ( originally written by Soh Tanaka but source website is gone) - it pops up a window over a darkened page with a close button that dismisses it and undims the page. It worked fine until I updated jquery to the latest 1.9.1 to implement some new stuff. Now it pops up the window but clicking the close button does not remove it anymore - it just shunts the page in background to top and it seems to add another layer of darkness to the background.

Listing services and status in a pop-up

不羁的心 提交于 2019-12-20 06:46:55
问题 I have a script that will stop and start services. However, I've had a few issues where services aren't stopping correctly which requires user intervention on the server. Before the start services portion of the script runs I'm using an if statement to check if all the services listed have stopped and if they haven't the script will pop an alert. Below is a snippet of the script that does this. I'm trying to list the services in the pop-up with their status and start-up type but for some

leafletjs how to get a handle to the active pop/marker

旧街凉风 提交于 2019-12-20 06:26:05
问题 I am want to be able to change the content of a popup on a leafletjs map. I have have hundreds of markers each with their own popup, they are loaded in a for loop from an array. var marker = L.marker(new L.LatLng(a[0], a[1]), { title: title }); marker.bindPopup('<img width="'+width+'" height="'+height+'" src="'+a[3]+'"/><br><div id="weather"> <button type="button" onclick="weatherload(\''+a[0]+'\',\''+a[1]+'\')">Click Me for Weather!</button></div>',{'maxWidth':'500','maxHeight':'350',

Can I set the background color in a Firefox extension's popup notification?

大憨熊 提交于 2019-12-20 05:58:24
问题 I am using the popup notification system described in the tutorial https://developer.mozilla.org/en/Using_popup_notifications . It is possible to change the background-color or text-color of the popup? 回答1: The example code in the documentation creates a <popupnotification popupid="sample-popup"> tag in the browser window (obviously, popupid attribute depends on the ID you specified when opening the notification), you can style it. Add the following code to a CSS file loaded by your browser

Jquery Click Popup and cookies (Show popup once)

為{幸葍}努か 提交于 2019-12-20 05:32:05
问题 Load Jquery <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script> I'm trying to get a popup to only load once then not show again for another 31 days. <script type="text/javascript"><!-- jQuery(document).ready(function() { if (jQuery.cookie('test_status') != '1') { setTimeout(function() { jQuery('.lightbox-handle').reveal() jQuery('.lightbox-handle')

File download with android

谁都会走 提交于 2019-12-20 04:16:20
问题 I am trying to save a file from the web to my Android device, but I do not know how to do it. The URL address opens a blank page and a popup download box with the file that I want to download so I can choose where to save it. My problem is that I do not know how to manage that box in order to download the file. It is not like I want to download something that is shown on that page because the page is blank. So I cannot use this code : Context context = thisClass.this; Drawable image =

Stop Playing Video When I Close The Lightbox

最后都变了- 提交于 2019-12-20 04:16:14
问题 I built a popup using this article and it looks really good. Here is what I did: <button id="open-popup">Play</button> <div id="popup-box" class="modal"> <div class="popup-content"> <span class="close">×</span> <p>[vimeo shortcode]</p> </div> </div> Here is the css /* The Modal (background) */ .modal { display: none; /* Hidden by default */ position: fixed; /* Stay in place */ z-index: 1; /* Sit on top */ left: 0; top: 0; width: 100%; /* Full width */ height: 100%; /* Full height */ overflow: