popup

sendMessage from popup to content.js not working in chrome extension

纵饮孤独 提交于 2019-12-04 21:08:28
问题 I'm trying to make a popup interface for a chrome extension. I can't seem to send a message from the popup.html/popup.js to the content.js script. Here's what I have so far. When I click on the extension icon I get a button that says clickme. I click it and nothing happens, no errors in the chrome javascript console, and no message to content.js. Manifest { "content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'", "manifest_version": 2, "name": "extensiontest", "version

One-time FancyBox popup like on Digg.com

China☆狼群 提交于 2019-12-04 21:04:16
How can I go about actioning a FancyBox popup that notifies new users of a quick sign-up button (or whatever is chosen) like on Digg.com ... and as with Digg just one time. I really have no experience with cookies but already have FancyBox running in other parts of the website, so the basis is already there. I require the popup to appear on page load. Any pointers very happily received! My eventual solution uses the Reveal Modal plugin ( click here ) to trigger inline to 'fire' on page load using the modified following code for the popup to be displayed only once every three days. Remember

Python Notification Popup that disappears

和自甴很熟 提交于 2019-12-04 20:58:35
Is there a way to create a pop up that disappears after a certain number of seconds or minutes. I only find examples of people having trouble with popups that disappear when they are not supposed to. I have found tkMessage box but when I test something with show info it is giving me two boxes and you have to click to get out of it. It's quite distracting. I'd rather have something that disappears, for example, the python program see's that a new email has arrived in and then creates a pop up, which has colour and some text and not distracting. Disappearing after say 60 seconds. You can easily

SimpleModal and ASP.NET MasterPage

一笑奈何 提交于 2019-12-04 20:27:07
Integrating SimpleModal with ASP.NET and MasterPages This is a continuation of a previous thread found here . Thanks to the help I received previously the code worked in a single page and I was able to use SimpleModal. But my application has MasterPages, so I pasted it into another test form. The results are different then the test I ran without a MasterPage. Without the MasterPage the modal opened and stayed open until closed by the user. With this MasterPage version the modal opens for only one second and then closes. Anybody know why? Below is a default sample master page. No edits were

Flex Air HTMLLoader blank pop up window when flash content is loaded

て烟熏妆下的殇ゞ 提交于 2019-12-04 20:17:45
I have a flex Air program that loads external content with the HTMLLoader. Now for some reason whenever I load a page that has any flash content a blank system window pops up outside of my program. It's completely blank, all white with min, max and close buttons. If I close it any flash content I loaded stops working. For the life of my I can't figure out what's happening and there's no messages in the console and no title for the window. Does anyone have any ideas? I appreciate any help you can give. Here's the code I'm using: private var webPage:HTMLLoader; private function registerEvents()

How to open the default popup from context menu in a chrome extension

心不动则不痛 提交于 2019-12-04 18:56:16
问题 I have developed a chrome extension that opens a popup when I click on the icon near the address bar. Everything works fine, however I want to add some functionality to it. So I thought I'd also add a context menu item so that the user can simply search for the highlighted word. I want the popup to showup when the user clicks on the item in the context menu(the default popup in the top right corner and not a new popup window or a new tab). Can I have this functionality? If yes, how do I

OAuth popup cross-domain security React.js

青春壹個敷衍的年華 提交于 2019-12-04 18:37:29
问题 I'm interested in how to implement OAuth in React using popup ( window.open ). For example I have: mysite.com — this is where I open the popup. passport.mysite.com/oauth/authorize — popup. The main question is how to create connection between window.open (popup) and window.opener (as it's known the window.opener is null due to cross-domain security therefore we can't use it anymore). ⇑ window.opener is removed whenever you navigate to a different host (for security reasons), there is no way

Is “aria-haspopup” attribute mainly for toolbar menu?

血红的双手。 提交于 2019-12-04 18:28:52
I have seen aria-haspopup attribute being used on toolbar menu of applications such as WYSIWYG editor . However, I haven't seen it being used on the main navigation in any ARIA demonstration website. Was this attribute introduced mainly for toolbar menu of applications? Is it appropriate and reasonable to use it on the main navigation (which has submenu) of a website? Just saw this attribute being used on the markup of jQuery UI Selectmenu (on the a element, which is the switch of selectmenu). So it seems to be okay to use it on any code. <span class="ui-selectmenu-button css-scope"> <a class=

Netbeans add popup menu with visual editor

让人想犯罪 __ 提交于 2019-12-04 17:51:43
I need to add a popup menu to the JFrame , but when I drop that component there it just dissappears. I can see it in code, but there is no way to edit anything about it. Is there a way I can edit it like say menu bar ? I use Netbeans 7.2.1 if that is important. PS - Yes, I tried googling and found only this , but it is not helping... Okay, I figured it out by myself. Open Windows -> Navigation -> Navigator it will show a navigator window with all components currently on jFrame. In that navigator window then click Other components . In there all non visual components including jPopopMenu will

Callback for a popup window in JavaScript

送分小仙女□ 提交于 2019-12-04 17:48:46
I hope I did my homework well, searching the Internets for the last couple of hours and trying everything before posting here, but I'm really close to call it impossible, so this is my last resort. I want a simple thing (but seems like hard in JavaScript): Click button -> Open Window (using window.open) Perform an action in the popup window and return the value to parent (opener) But I want to achieve it in a systematic way, having a callback defined for this popup; something like: var wnd = window.open(...) wnd.callback = function(value) { console.log(value); }; I've tried defining the