popup

how to open a new uiview like a popup?

微笑、不失礼 提交于 2019-12-17 19:55:16
问题 i have a tabbar app. there is a button in one of tab. i want to open a new uiviewcontroller by animation like popup when i press the button. popupviewcontroller has a uiwebview. i want to show some web pages in popup view. i designed the popupview in IB. how can i open my popupviewcontroller with animation like FBConnect. FBconnect opens the login dialog view with animation like a popup. 回答1: You won't be able to open like a popup a UIViewController. For that you will have to use a simple

How change position of popup menu on android overflow button?

拟墨画扇 提交于 2019-12-17 18:57:48
问题 I just like to implement somethings same as popup menu in the Gmail app, anchored to the overflow button at the top-right. for that I used the same code as google tutorial for android Android popup menu, but for me show pop menu on top of edge of actionbar not under that. If you notice on pop menu of gmail overflow you saw that popmenu take place at edge of actionbar. This is the xml that I used for popup menu: <menu xmlns:android="http://schemas.android.com/apk/res/android" > <item android

Angular <router-outlet name=“popup”> change URL path structure?

拥有回忆 提交于 2019-12-17 17:03:54
问题 I'm using a popup (refering to the docs): https://angular.io/guide/router#displaying-multiple-routes-in-named-outlets Everything is fine apart from the URL structure: /domain/subPath/(popup:myopoup) How can I change this default structure with parenthesis? I would like it to be as follows: /domain/subPath/popup In other words, I want to remove the brackets including the colon inside the URL. Inside their documentation the popup also appears in that manner (with brackets) Here is some code:

popup open position in chrome

ぃ、小莉子 提交于 2019-12-17 16:34:12
问题 When I'm using firefox and then using window.open('blah.com','blah','left=-30,top=-300'); , the popup opens in my second display above my first one but in chrome, the popup just opens at left=0,top=0 . Is there a reason why chrome is doing this and how would I fix the problem? Thanks! 回答1: I think this is a bug in Chrome to be honest but I'm not aware of a fix at the moment as I'm new to JavaScript myself. Sorry I'm sure this not the answer you were looking for. 回答2: This is a bug in Chrome

MVC-pop up windows

六月ゝ 毕业季﹏ 提交于 2019-12-17 16:07:53
问题 I need to create pop up windows in mvc(not new tab in browser). Does anyone know how to do this? 回答1: One possibility is to use jquery ui dialog. EDIT The idea would be to have an ajax action that returns a partial view. The result of that action (html) is placed inside the container of the popup and on the success handler of the ajax call you open the popup. Here is some sample code: @Ajax.ActionLink("Open popup", "SomeAction", new AjaxOptions { HttpMethod = "GET", UpdateTargetId = "result",

SugarCRM- How to get POPUP when click on Save button?

孤人 提交于 2019-12-17 15:59:12
问题 I want when click Save in Edit View of some module (example Contact) to get pop up with some message (later I will get options OK and Cancel on that pop up.). My function YAHOO.SUGAR.MessageBox.show({msg: 'Foo'} ); is working when I put it at top of editviewdefs.php (I also must include cache/include/javascript/sugar_grp_yui_widgets.js ) ) file and when opening that view I am getting that pop up. But I want it to popup on Save,not when opening EditView (this was just testing that showed me

Add Modal Popup to Map Annotation - Swift 3.0

你说的曾经没有我的故事 提交于 2019-12-17 14:58:17
问题 I have a number of custom pins on a map and when a user taps a pin and then the button on the Callout View I would would to add a function that launches a Modal Popup using Scene Dock Here is my code: func mapView(_ mapView: MKMapView, annotationView view: MKAnnotationView, calloutAccessoryControlTapped control: UIControl) { // here I would like to launch a Modal Popup using Scene Dock popInfo.center = view.center popInfo.transform = CGAffineTransform(scaleX: 0.8, y: 1.2) self.view.addSubview

Pop up window to display some stuff in a fragment

浪子不回头ぞ 提交于 2019-12-17 10:42:08
问题 I am trying to make something like a pop-up window, that would appear when clicked on a view in a fragment. I want this pop-up window or whatever, to not make the fragment dark, like a Dialog Fragment does. And I also want the pop up to be positioned where the view is clicked. Would be good if it has its own activity and layout so I can do some custom changes in it. Can you plese show me some sample code? 回答1: The following should work perfect in accordance with your specification. Call this

Using javascript to print images

好久不见. 提交于 2019-12-17 10:37:24
问题 I would like to know if it's possible to use javascript to open a popup window containing an image, and at the same time have the print dialog show. Once someone clicks on print, the popup closes. Is this easily attainable? 回答1: popup = window.open(); popup.document.write("imagehtml"); popup.focus(); //required for IE popup.print(); 回答2: Another great solution!! All credit goes to Codescratcher <script> function ImagetoPrint(source) { return "<html><head><scri"+"pt>function step1(){\n" +

How to window.open with a toolbar in Google Chrome?

蓝咒 提交于 2019-12-17 09:49:51
问题 The following javascript opens a pop-up in Firefox, Safari, IE, and Google Chrome: window.open("http://google.com", "foo", "toolbar=yes,location=yes,menubar=yes") However, in Google Chrome the toolbar (with the usual forward and back buttons, etc.) does not appear on the popped-up window. (Tested on both Windows and Mac.) How can I fix this? I would like the user to be able to navigate forward and back using the tools with which they are most familiar. 回答1: Unfortunately Chrome only supports