popup

Open Highcharts in modal window

╄→尐↘猪︶ㄣ 提交于 2019-11-30 15:51:49
问题 I'm working on a site where I use Highcharts quite heavily for presenting data in charts. I want to user to be able to "zoom" each chart into a modal window for better readability. I know how to manipulate the chart with its API, but I'm not quite sure how I can clone the chart and refer to the new chart with an variable? I've done alot of searching, and all I've found is how to open in modal window with Highcharts own modal library, but I'm using a modal library called Lightview. 回答1: You

Ajax pop up box using Ruby on Rails

一曲冷凌霜 提交于 2019-11-30 15:41:24
This is a pretty basic question but I can't find a good answer for it. I have a page in my Rails app where there are many objects that can be 'flagged'. Clicking the flag button should display a little box with a confirmation, little form, etc. The trouble is I can't figure out how to do this using RJS templates. I've been using page.insert_html but this requires an ID. In order to make this work I had to assign each thing that can be flagged a unique ID. This doesn't seem very clean and still leaves me wondering about making sure only one form can be displayed and that the box disappears on

iOS Option Popup - Similar to Cut/Copy/Paste

十年热恋 提交于 2019-11-30 15:39:05
For an app I'm developing I need some popup options, similar to how Cut/Copy/Paste is displayed when selecting text in a UITextView or UIWebView. However, I'm having trouble finding what this kind of popup is called. Is there a public API for them, or is it something that has to be implemented from scratch? The class you want to look at is UIMenuController. If memory serves, you will need to create an array of UIMenuItem instances to describe the custom actions, and add them to the UIMenuController singleton using 'setMenuItems:'. UIMenuController and UIMenuItem is what you are looking for.

JavaScript Popup Chrome 'save as'-deactivated? Why?

亡梦爱人 提交于 2019-11-30 15:25:26
问题 I am opening an popup in Javascript with: function popup(title,w,h,site) { x = screen.availWidth/2-w/2; y = screen.availHeight/2-h/2; var date = new Date() var ticks = date.getTime(); var popupWindow = window.open( title,"popup"+ticks,'width='+w+',height='+h+',left='+x+',top='+y+',screenX='+x+',screenY='+y+',resizable=yes,scrollbars=yes,menubar=yes,toolbar=yes,titlebar=yes,hotkeys=yes,status=yes,dependent=no,location=1'); popupWindow.document.write(site); return popupWindow; } When I right

How do I fire a modal for the next step in my introjs?

被刻印的时光 ゝ 提交于 2019-11-30 15:01:19
So IntroJS works off of the data-intro and data-step attributes. So for instance my logo looks like this: <h1 id="logo" data-step="1" data-intro="Welcome to MyApp, where you can start creating an album for generations! Let us help you get started."> But for step 3 it is on an element that when pressed, the next step should be on the modal that would appear if the element in Step 3 was pressed. I have this as my Step 4 which doesn't work: <div class="popup" id="add-images-step-1" data-step="4" data-intro="GETS TO UPLOADING"> Right now, when you reach Step 3 and press next , it gives you an

How to animate a Popup when it hides?

无人久伴 提交于 2019-11-30 14:35:23
i created a Popup Style for using in my windows 8.1 application. And i applied PopupThemeTransition to it's ChildTransitions Property. <Style x:Key="AnimatedPopupStyle" TargetType="Popup"> <Setter Property="IsLightDismissEnabled" Value="False"/> <Setter Property="ChildTransitions"> <Setter.Value> <TransitionCollection> <PopupThemeTransition/> </TransitionCollection> </Setter.Value> </Setter> </Style> My problem is that it animates when it Opens & not animating when closing. What to do with that for animating the content on hiding ? Do i want to create a Custom Popup control? NB: I know that

JavaScript Popup Chrome 'save as'-deactivated? Why?

一曲冷凌霜 提交于 2019-11-30 14:30:12
I am opening an popup in Javascript with: function popup(title,w,h,site) { x = screen.availWidth/2-w/2; y = screen.availHeight/2-h/2; var date = new Date() var ticks = date.getTime(); var popupWindow = window.open( title,"popup"+ticks,'width='+w+',height='+h+',left='+x+',top='+y+',screenX='+x+',screenY='+y+',resizable=yes,scrollbars=yes,menubar=yes,toolbar=yes,titlebar=yes,hotkeys=yes,status=yes,dependent=no,location=1'); popupWindow.document.write(site); return popupWindow; } When I right click the new window, the "save as"-dialog is deactivated in chrome. How can I enable it? What am I doing

Tab key not working in popup in chrome extension

六月ゝ 毕业季﹏ 提交于 2019-11-30 13:04:12
I have created a chrome extension that has a popup with the following HTML markup in it: <html> <head> <style> body { font-family: 'Open Sans',arial,sans-serif; background-color: #E5E5E5; font-size: 13px; text-shadow: 0px 1px rgba(255, 255, 255, 0.5); } </style> </head> <script type="text/javascript">function sendRequest(s,r){ chrome.tabs.getSelected(null, function(tab) { chrome.tabs.sendRequest(tab.id, {search:s , replace:r}, function(response) { console.log(response.farewell); }); }); }; </script> <body> <label for="search">Search for</label><input name="search" id="search"></input> <label

How do you resize a browser window so that the inner width is a specific value

放肆的年华 提交于 2019-11-30 11:57:09
问题 If you are just here to tell me on why resizing a window is a bad idea, obnoxious, and the web-equivalent of nails on a chalk board, then please go away. I am looking for a solution not a lecture. This is to be used in a intranet setting only. Specifically, to debug and then demo responsively designed web sites (sites that use media queries to scale) to clients for review via a web meeting. I want to demo specific break points. This is not to be unleashed on the general public. Things I

Prevent Background Scrolling When Displaying Popup

最后都变了- 提交于 2019-11-30 11:56:01
问题 I have a form that is displayed in a popup. After loading, the background is grayed out, but the user can still scroll the background content up and down. How do I prevent the background from scrolling? Example here the 'email this quote' link to the right of the pdf screenshot. 回答1: One option is to temporarily set the overflow property to hidden on body , that will get rid of the scroll bars but causes a small flicker when the page is adjusted. The other choice is to tap onto the $(window)