popup

Popup Not Showing

无人久伴 提交于 2019-12-11 09:39:17
问题 On a tap event I would like to show a popup all within code behind, but my popup is not displaying? void PopupDisplay_Tap(object sender, System.Windows.Input.GestureEventArgs e) { if (sender != null) { p = new Popup { Width = 480, Height = 580, HorizontalAlignment = System.Windows.HorizontalAlignment.Center, VerticalAlignment = System.Windows.VerticalAlignment.Center }; Border b = new Border(); b.BorderBrush = new SolidColorBrush(Colors.Gray); b.BorderThickness = new Thickness(2); b.Margin =

Way to add hyperlink to Leaflet popup in Shiny

≯℡__Kan透↙ 提交于 2019-12-11 09:11:37
问题 Using leaflet in shiny to make an interactive map. Pulling data for popups from a CSV: Row on CSV: Name lat lng Tufts 42.349598 -71.063541 Code on R for markers: m %>% addMarkers(~lng, ~lat, icon = custommarker1 popup = ~htmlEscape(Name)) This returns marker in correct spot with popup displaying ' tufts ' Wondering if there is a way to encode a hyperlink into the popup directly in the CSV?Oor to put plain text as a new CSV column and have R / Shiny then turn it into a hyperlink. Very new to

Minimize, Maximize and close buttons of Windows title bar does not work on single click when pop up window is open

白昼怎懂夜的黑 提交于 2019-12-11 09:07:12
问题 While my popup window is open, The first single click on minimize or maximize or close button does not work. The first Click on these title bar buttons closes the popup menu and shifts the focus, And then on the second click the minimize/maximize/close of window works. Is there any way - where we can activate these title bar buttons on the first click itself ? MainWindow.xaml <Button Height="54" Width="50" Margin="100,0,0,0" x:Name="btnNotification" FontFamily="Segoe UI Symbol" FontSize="20"

Open browser windows without menu bars (JavaScript?)

我的未来我决定 提交于 2019-12-11 09:06:03
问题 The users in my community want the chat to be opened in a small window without all the control bars. So I think a popup window without scroll bars, location bar, status bar and so on would be the best solution. Right? What is the best way to have such a popup window? JavaScript? Can I do it like this? BETWEEN AND <script type="text/javascript"> <!-- var win = NULL; onerror = stopError; function stopError(){ return true; } function openChat(){ settings = "width=640, height=480, top=20, left=20

From pop window active the parent window

前提是你 提交于 2019-12-11 08:52:00
问题 Using JavaScript I open the pop window and parent window is inactive at this time, I wanted to active parentwindow through popwindow. (this is a web project on Java) 回答1: You can usually window.opener in JavaScript to get at the window that opened at popup. 来源: https://stackoverflow.com/questions/877788/from-pop-window-active-the-parent-window

How to load popup window on android application startup? onCreate()?

眉间皱痕 提交于 2019-12-11 08:18:39
问题 I am new to android development and i want to ask how to load popup window on android application startup? onCreate()? I have seen many examples but no one covered my needs. Is there a way to load a popup window on application start? Thank you 回答1: The best place to do this is in the onStart method of your Activity. Essentially, we need to: Get a new Dialog, and specify the XML layout you want. Fill in any other options, including code to run when the user clicks on the buttons on the dialog

dismiss popup when options menu is pressed

老子叫甜甜 提交于 2019-12-11 08:09:26
问题 I implemented a popup which shows up when I press the hardware menu key. Now I want to dismiss the popup when I press on the menu key again. I tried this @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_MENU) { if (pw.isShowing()) { pw.dismiss(); } else { openpopup(); } return true; } return super.onKeyDown(keyCode, event); } here's the open popup method public void openpop() { View view1 = getCurrentFocus(); showpopup(view1); } here's the

Popups no longer function after filtering markers in mapbox

ⅰ亾dé卋堺 提交于 2019-12-11 08:05:10
问题 I have set up features from an external geoJson file in Mapbox and bound popups to these features following the example at https://www.mapbox.com/mapbox.js/example/v1.0.0/custom-popup/ var myLayer = L.mapbox.featureLayer(bldgData).addTo(map); myLayer.eachLayer(function(layer) { // set up popup for each marker var content = ""; var props = layer.feature.properties; var imagePart = "<img class='popupPic' src='images/thumbnails/" + props.filename + "' ></img>"; var infoPart = "<h3 class=

confirm message box

允我心安 提交于 2019-12-11 07:35:16
问题 I have to show a yes no popup messagebox for a function> This is what i do for an alert popup> Page.ClientScript.RegisterStartupScript(this.GetType(), "Alert", "<script>alert('File Updated');</script>"); This is what i want to do in the code behind: if (ID != 0) { Page.ClientScript.RegisterStartupScript(this.GetType(), "Confirm", "<script>confirm('are you sure?');</script>"); if (yes) { perform function } else { return; } } The confirm is not working,,, any suggestions on how to do this

Catch popup window and notify user in Firefox

心已入冬 提交于 2019-12-11 07:19:36
问题 There is a web site that randomly shows up some campaign popup windows on their web site. It would be very useful if a user would be notified when a popup is shown up on that site in Firefox, etc. Can it be possible with the help of Javascript, or any add-on, etc.? 回答1: Two options. nsIWindowWatcher - https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsIWindowWatcher nsiWindowMediator - https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface