popup

How to create a hovering pop up

僤鯓⒐⒋嵵緔 提交于 2020-01-06 21:22:10
问题 I would like to have a link on my site that when you click it a site segment that hovers above the content appears and displays some information until it is closed in some way, and I would like to be able to insert anything I want to in there- text, images, CSS formatting, etc. What language should I use for this? Do you know any sites that do this? Also a link to relevant libraries would be appreciated. 回答1: javascript is used for such client side tasks such as this. The library jquery will

Ionic calling one of 3 popups depending on some variable

可紊 提交于 2020-01-06 18:31:28
问题 I have 3 popups in my Ionic app; angular.module('starter') .controller('PopupCtrl', function($scope, $ionicPopup, $timeout) { $scope.showAlert1 = function() { var alertPopup = $ionicPopup.alert({ title: 'Succes!', }); }; $scope.showAlert2 = function() { var alertPopup = $ionicPopup.alert({ title: 'Fail...', }); }; $scope.showAlert3 = function() { var alertPopup = $ionicPopup.alert({ title: 'Third option', }); }; }); I'd like to assign them to one button. When the button is clicked and var x=1

How to dynamically modify the manifest file css file for Chrome Extension, or what is the correct way to toggle a stylesheet on/off?

淺唱寂寞╮ 提交于 2020-01-06 09:31:21
问题 Branching off my Other Question, a user successfully got me to serve a stylesheet but that is the wrong way; it is not what I needed to do. So I have come up with a more accurate question: Basically, you can make an extension permanently modify a web page by defining a content script in manifest.json. I need the ability to, on the click of a button within popup.html, toggle a stylesheet on or off. The answer to my other question I linked to, only allows my to serve a stylesheet, but that is

Alternative way to notify the user of an error

最后都变了- 提交于 2020-01-06 08:49:12
问题 I have a winform software that communicates with hardware through a protocol. Sometimes error in communication happens and i would like to notify the user. Errors could be for example: timeouts, crc errors, physical disconnection etc... I have a communication window in which i show these errors, but by default this is hidden. The user can open it though the menubar. Popups are annoying to the user (and to myself) so i would like a un-invasive way to notify the user that an error has occurred.

Script manager popup doesn't appear

核能气质少年 提交于 2020-01-06 08:48:06
问题 I have an ASP.NET page. I want to throw a pop up upon clicking a certain button on the page. The syntax I used is this: ScriptManager.RegisterStartupScript(this, this.GetType(), "popup", "alert('Invalid Address!!');", true); The popup did not appear. However, when trying the same syntax on a different page in the same project, it worked. Any ideas? 回答1: Try changing the below line from ScriptManager.RegisterStartupScript(this, this.GetType(), "popup", "alert('Invalid Address!!');", true); to

How to persist open div box using angularjs

时光怂恿深爱的人放手 提交于 2020-01-06 07:58:13
问题 The code below works very. It can open and close a popup messagebox. Now I want to ensure that any opened popup box is persisted on page refresh based on its Id. I guess this is the work of a localstorage. In jquery , I can do it with the code below. <!doctype html> <html> <head> <title></title> <style> .contact_box { bottom: -5px; height:200px; background: black; color: red; border-radius: 5px 5px 0px 0px; display: inline-block; position: fixed; width: 500px; bottom: 0% } </style> <script

Passing variable to the new popup window

岁酱吖の 提交于 2020-01-06 07:26:27
问题 I have a table in which there are small href links assigned in each row which i have set using below code working fine: <a href="popup.php" onclick="javascript:void window.open('popup.php','1361166642895','width=700,height=500,toolbar=0,menubar=0,location=0,status=1,scrollbars=1,resizable=0,left=0,top=0');return false;"><h10>(check status)</h10></a> Now I do not want to display the same above href link as static but want to send my variable value to the pop window and need to get data

How to use dijit.Calendar directly in a form (rather than as a popup)

十年热恋 提交于 2020-01-06 07:20:34
问题 I'd like to have a dijit.form.Calendar embedded directly in my dojo form, rather than appearing as a popup (as dijit.form.DateTextBox provides; this is because the form is already a dropdown selector and just choosing a date would be much more natural than having to click again on the text box) What's the easiest way to do this? I don't mind if the text box still appears and is editable (although that's not a requirement) - but the dijit.Calendar docs say explicitly that you can't use it as a

Bootstrap popup does not appear when include bootstrap.min.css

醉酒当歌 提交于 2020-01-06 01:18:28
问题 I'm having problem using CSS as I'm new to this. I'm currently using the bootstrap popup, example as below. When I click on the 'Full Spec' button, the popup box will appear. However, the file bootstrap.min.css seems to be the problem now. If I include bootstrap.min.css in my code, the popup box won't appear. And I if did not include that file, the popup box will appear, but the alignment, size of my images, text and others changes. Is there a way so that my popup box would appear without

Bootstrap popup does not appear when include bootstrap.min.css

我是研究僧i 提交于 2020-01-06 01:18:12
问题 I'm having problem using CSS as I'm new to this. I'm currently using the bootstrap popup, example as below. When I click on the 'Full Spec' button, the popup box will appear. However, the file bootstrap.min.css seems to be the problem now. If I include bootstrap.min.css in my code, the popup box won't appear. And I if did not include that file, the popup box will appear, but the alignment, size of my images, text and others changes. Is there a way so that my popup box would appear without