popup

How to allow for multiple popups at once in WinRT?

匆匆过客 提交于 2019-11-28 08:50:51
If you call the ShowAsync command on a MessageDialog object when another MessageDialog object has already been displayed to the user but not dismissed (i.e. you show a popup when another one is already up), an UnauthorizedAccessException is thrown. This can make things difficult when you have multiple threads attempting to alert the user at the same time. My current (stopgap) solution is merely to surround the ShowAsync call with a try/catch block and swallow the exception. This undesirably leads to the user missing out on subsequent notifications. The only other way around this that I can

Bypass IE “The webpage you are viewing…” pop up

对着背影说爱祢 提交于 2019-11-28 08:36:38
Is there a way to bypass the following IE popup box: The webapge you are viewing is trying to close the window. Do you want to close this window? Yes|No This is occurring when I add window.close() to the onclick event of an asp.net button control. Your JavaScript code can only close a window without confirmation that was previously opened by window.open(). This is an intentional security precaution because a script running on a webpage does not own the window, and by closing it discards the browsing history in that window. The workaround is to either have a "welcome page" or otherwise some

Alternatives to illegal <br> or <p> within <li> tags on a hover?

久未见 提交于 2019-11-28 07:32:40
问题 Does anyone have a suggestion for creating paragraph-type line spaces within a <li> tag that includes a hovered pop-up pseudo-class? I have a <span> that pops up on a:hover and I want the text that pops up to be broken into 2 paragraphs. It works with <br> in FF but I want to do the right thing (now that I've discovered it's wrong!)... html: <div id="rightlist"> <ul> <li><a href="">List item <span> words words words that are "paragraph" 1 of List item <br><br> different words that make up

How to create an SVG “tooltip”-like box?

一世执手 提交于 2019-11-28 06:44:19
Given an existing valid SVG document, what's the best way to create "informational popups", so that when you hover or click on certain elements (let's say ) you popup a box with an arbitrary amount (i.e. not just a single line tooltip) of extra information? This should display correctly at least in Firefox and be invisible if the image was rasterized to a bitmap format. <svg> <text id="thingyouhoverover" x="50" y="35" font-size="14">Mouse over me!</text> <text id="thepopup" x="250" y="100" font-size="30" fill="black" visibility="hidden">Change me <set attributeName="visibility" from="hidden"

Show Jquery Popup Only Once

与世无争的帅哥 提交于 2019-11-28 06:43:13
问题 I have a site where a user must login and once that is done they are directed to a new page and a pop up box appears. I have no problem displaying the popup box however if you refresh the page over and over the popup box appears. I want it to display only once they login and never again after that as long as they never sign out. This means if they re-fresh the page or anything like that the popup will NOT appear again. Is there some sort of plugin or easy code for this (I'm kind of a beginner

JComboBox popup is not resized if i add item when it is visible

左心房为你撑大大i 提交于 2019-11-28 06:14:44
问题 I have a problem with a JComboBox popup. My JComboBox has an autocompletition implementation like google search box. So, the problem is if I add or remove items when popup is visible it is not resized, I need to close and reopen it. But this fire popupBecomeInvisible and popupBecomeVisible and so i can't use this events for my real porpouse. There is a way to "refresh" popup size in according to count of items that it contains, without close and reopen it? Thanks. 回答1: Invoke revalidate() on

Show popup after page load

≡放荡痞女 提交于 2019-11-28 05:59:46
问题 I created a jQuery popup by following an online tutorial. I want to show this popup after page load/after page load it appears + how to code it as like it appears after 5 second of page load. Due to my low knowledge on jQuery I am not able to make it work as of my requirements. Any idea how to do it? Javascript- <script type="text/javascript"> function PopUp(){ document.getElementById('ac-wrapper').style.display="none"; } </script> CSS- #ac-wrapper { position: fixed; top: 0; left: 0; width:

Watir: Need to double click on an element to open custom popup

六眼飞鱼酱① 提交于 2019-11-28 05:55:25
问题 I am a newbie in WATIR. The problem I am facing is - The application I am testing has thumbnails (like Windows icons) placed on the page and I need to double click it. On doing that, an custom popup (ajax popup implemented in javascript) will open. The fire_event("ondblclick") is not working for me. I also tried 'click' twice but that too is not helping. Is there any other way of handling this? Your help is highly appreciated. Added 6 July 2010: I solved it but I have another query now. Below

Show a PopupWindow centralized

馋奶兔 提交于 2019-11-28 05:14:53
I have some popups on my app, it's fullscreen and the following code: content.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); content.measure(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); int screenWidth = windowManager.getDefaultDisplay().getWidth(); int screenHeight = windowManager.getDefaultDisplay().getHeight(); int x = screenWidth / 2 - content.getMeasuredWidth() / 2; int y = screenHeight / 2 - content.getMeasuredHeight() / 2; window.showAtLocation(content, Gravity.NO_GRAVITY, x, y); Make the window show centered. But I have another

Pop up form on button click

馋奶兔 提交于 2019-11-28 04:39:46
问题 Is there a way to create a form in pop-up window on click of a button using jquery? Form will have few input fields and 'Save' & 'Cancel' buttons. So on clicking 'Save', the information in form will be saved in database and will be back to original screen. I would like to have a fade-in pop up window. 回答1: Use this code HTML <div id="divdeps" style="display:none" title=""></div> Jquery on DOM ready $("#divdeps").dialog({ autoOpen: false, show: 'slide', resizable: false, position: 'center',