popup

How do I popup the compose / create mail dialog using web based email such as Gmail or Yahoo mail using c#

久未见 提交于 2019-12-12 18:14:49
问题 On my ASP.NET web page, there is a text box called box1, a text box called box2, and a button. When I click on the button, I would like it to automatically create a "Compose a new message " email screen from an already signed in web based email ID such as Yahoo or Gmail. And the recipient(s) and email body text automatically get populated from box1 and box2, respectively, from my ASP.NET web page. Can this be done? Thanks. 回答1: mailtoLink.href = "https://mail.google.com/mail?view=cm&tf=0" +

How can a Javascript parent window send data to popup window?

烈酒焚心 提交于 2019-12-12 18:00:28
问题 I have been writing a browser based application (or rather, rapid prototyping an application) using HTML and Javascript. I would like the main window to be able to display popup windows with dynamic data. However, I cannot figure out how to push data from a parent window to a popup window in Javascript. Note, I am working with the assumption that the application may be used in "offline" scenarios, so all dynamic data should be coming from the main window. Ideally, I'd like to write var popup

Wrong alignment of ContextMenu and Popup WPF controls on Windows 10

喜欢而已 提交于 2019-12-12 17:46:03
问题 It's really strange problem which I hope somebody knows how to solve. Situation: Our WPF project has a form on which we show context menus (ContextMenu control) and popups (Popup control) in response on some user actions. In most cases it happens on mouse click on some text block. Here is an example: popup = new Popup { Placement = PlacementMode.Relative, PlacementTarget = textBlock, StaysOpen = false }; . . . . . //later on mouse click: popup.IsOpen = true; The popup must appear aligned to

Changing from hover to click?

给你一囗甜甜゛ 提交于 2019-12-12 17:36:37
问题 I've recently implemented a small box on my website at the bottom of the page to expand when the mouse hovers over it... This is the code and it all works great. CSS #box{ position:absolute; width:300px; height:20px; left: 33%; right: 33%; min-width: 32%; bottom:0; background-color: #353535; } javascript $('#box').hover(function() { $(this).animate({ height: '220px' }, 150); },function() { $(this).animate({ height: '20px' }, 500); }); But I'm curious about how I would go about changing this

Why setOnCheckedChangeListener not working in a popup that uses LayoutInflater?

北城以北 提交于 2019-12-12 16:52:43
问题 I have a RadioGroup in a popup. When i put setoncheckedchangelistener it causes an error. here's my code. The error says that it is not applicable to the arguments (new Compound Button.OnCheckedChangeListener.. i don't understand can somebody pls help me? private void showPopupSeat(final Activity context) { int popupWidth = 500; int popupHeight = 650; // Inflate the popup_layout.xml LinearLayout viewGroup = (LinearLayout) context.findViewById(R.id.popupseat); LayoutInflater layoutInflater =

delayed popup code

百般思念 提交于 2019-12-12 16:18:01
问题 I'm currently trying to set up a pop-up survey for my website that appears to visitors after 10 seconds, but only have a remedial understanding of coding. Surveymonkey generated the following code for the pop-up, but how would I add in this delayed pop-up feature? <script src="http://www.surveymonkey.com/jsPop.aspx?sm=WVuy7oI7MerxwqmaCFF23g_3d_3d"> </script> 回答1: You'll need to use JavaScript to add this script tag to the page after a 10 second timeout, rather than loading it up front. This

How can I change the background color of a Leaflet popup?

强颜欢笑 提交于 2019-12-12 15:43:36
问题 I'm creating a map using Leafletjs, and I'd like to change the background color of a popup (which is currently displaying and image and a link) from white to a different color. It seems that basic background color css syntax won't cut it. Any advice? Thanks, -Scott 回答1: After you call leaflet.css, you can include a <style> tag with the following rule to change the color of the popup and popup tip. .leaflet-popup-content-wrapper { background-color: #000 } Here's a screenshot I took after I

Why overflowing menu is working bad when there are 0 items in visible original ul?

本小妞迷上赌 提交于 2019-12-12 13:00:39
问题 Here is how problem looks like: While it should look like: Here is function used to create poping up overflowing menu: function updateMenu(){ var lastItemIndex = Number.POSITIVE_INFINITY; var lastItemText = ""; var maxWidth = 0; var overflowCount=0; var navHeight = $('.nav').height(); $('.nav li').each(function(i,e){ console.log($(e).position().top); if($(e).position().top>=navHeight){ if(i<lastItemIndex) lastItemIndex=i-1; if($(e).width()>maxWidth) maxWidth = $(e).width(); overflowCount++; }

Performing a certain task after pressing “ctrl” + “alt” + “backspace”

元气小坏坏 提交于 2019-12-12 11:22:08
问题 How do I code it when I want to perform something. Let's say that the focus on a JTextField and a messagebox will pop up when the user pressed ctrl + alt + backspace at the same time. 回答1: An example with key bindings: import java.awt.event.ActionEvent; import java.awt.event.KeyEvent; import javax.swing.*; public class JTextFieldMagic { public static final String CTRL_ALT_BACK_SPACE = "ctrlAltBackspace"; public static void main(String[] args) { JTextField field = new JTextField(10); int

iPad-like pop-over in Sencha touch

对着背影说爱祢 提交于 2019-12-12 11:12:15
问题 I want to create an iPad-like pop-over with a login form in Sencha touch. How can I do this? 回答1: You may try making a normal Ext.Panel to look like a popover var gkpopover = new Ext.Panel({ id :'gkpopoverpanel', floating:true, modal:true, width:'100px', height:'100px', }); Note: Never forget to set height and width. and to Show gkpopover.show('pop'); hope this makes sense. 回答2: On sencha touch 2, floating is depreciated. I've modified @geekay code to; //show info popover? var popoverpanel =