popup

How to close a popup window in Liferay?

与世无争的帅哥 提交于 2019-12-30 05:26:07
问题 I load the WebContent edit portlet on a Popup window using the following code: <liferay-ui:icon image="edit" label="true" message="news-edit-url" url="${oneNews.newsEditUrl}" /> editUrl: taglibEditURL = "javascript:Liferay.Util.openWindow({dialog: {width: 960}," + "id: '" + renderResponse.getNamespace() + "'," + "title: '" + LanguageUtil.format(request.getLocale(), "edit-x", HtmlUtil.escape(assetRenderer.getTitle(request.getLocale()))) + "'," + "uri:'" + HtmlUtil.escapeURL

How to animate a Popup when it hides?

三世轮回 提交于 2019-12-30 04:59:05
问题 i created a Popup Style for using in my windows 8.1 application. And i applied PopupThemeTransition to it's ChildTransitions Property. <Style x:Key="AnimatedPopupStyle" TargetType="Popup"> <Setter Property="IsLightDismissEnabled" Value="False"/> <Setter Property="ChildTransitions"> <Setter.Value> <TransitionCollection> <PopupThemeTransition/> </TransitionCollection> </Setter.Value> </Setter> </Style> My problem is that it animates when it Opens & not animating when closing. What to do with

PopupWindow not triggering sytem context dialog on EditText long-press

偶尔善良 提交于 2019-12-29 09:15:07
问题 Sorry if the title was a bit vague. I'm developing an app on Freelancer and I almost have it finished except for a complaint from the customer after some testing. I use a PopupWindow in place of a dialog to edit contextual settings, if that makes any sense. I don't want to be too specific and risk giving the app concept away, which I'm sure the customer wouldn't be too pleased about. The PopupWindow is given a Content View of a layout inflated from XML. In that layout are several EditText

Content Editable cursor position to be in editable div when popup of text editor occur

雨燕双飞 提交于 2019-12-29 09:14:06
问题 I'm trying to build a jquery content editable code where a user identifies the editable div while hovering the mouse, once it clicks on that div the content becomes editable and buttons pops up for selecting type of edit. Now when I click the button a text editor pop up and formats the text, once I click the button the cursor or pointer it comes out of the editable div. I'm using jquery to make the content editable Here's my code. $(function() { var mouseX; var mouseY; var modal = false; $

How to call JavaScript function in VBA?

佐手、 提交于 2019-12-29 08:17:09
问题 I need to by pass an IE confirm 'OK'/'Cancel' pop-up message. I have a problem running a JavaScript function in my VBA script. My JavaScript: function ConfirmSave() { var Ok = confirm('Are you sure all Documents and Information are attached and correct before saving?'); if(Ok) return true; else return false; } function submitbutton_click() { document.getElementById('FileAttachement2_hdnButtonFlag').value = "SAVE"; var submitbutton = document.getElementById('cmdDownSave'); var uploadobj

Cannot pass arguments from the tkinter widget.after function

心不动则不痛 提交于 2019-12-29 07:57:46
问题 Part of the GUI I'm building using tkinter has a pop-up window that says "Please wait while the program is running." then after it finishes the window goes away. I'm using the widget.after command to open the window and run the command. However if I pass the function I call arguments then the pop up window never occurs. Here's an example: def backupWindow self.restoreCB = Toplevel() message = "Please wait while backup runs" Label(self.restoreCB, text=message, padx=100, pady=20).pack() widget

jQuery Popup Window Return Value to Parent

时间秒杀一切 提交于 2019-12-28 18:15:24
问题 How can I accomplish the following using jQuery: Open a popup window that returns a value to the parent window when a link in the child window is clicked, close the child window, and then have the parent automatically submit a form based on the value returned? I realize that the jQuery Dialog is a popular solution, but I require a popup window because the window's contents need to be navigable, and I want to avoid using an iframe in the jQuery Dialog. The popup window is going to be used to

jQuery Popup Window Return Value to Parent

大城市里の小女人 提交于 2019-12-28 18:14:29
问题 How can I accomplish the following using jQuery: Open a popup window that returns a value to the parent window when a link in the child window is clicked, close the child window, and then have the parent automatically submit a form based on the value returned? I realize that the jQuery Dialog is a popular solution, but I require a popup window because the window's contents need to be navigable, and I want to avoid using an iframe in the jQuery Dialog. The popup window is going to be used to

Matplotlib basemap: Popup box

不想你离开。 提交于 2019-12-28 05:42:27
问题 I want to know how to create a popup box in a basemap plot. When I hover my mouse over a location , it should trigger the popup box. Is this possible? 回答1: Yes it is possible thanks to matplotlib's event handling framework. I couldn't find an already written example which does what you are particularly interested in so I wrote one (which I will put forward for inclusion in the matplotlib source). I would read http://matplotlib.sourceforge.net/users/event_handling.html thoroughly to best

Opening popup links in UIWebView, possible?

[亡魂溺海] 提交于 2019-12-28 02:45:08
问题 I have a UIWebView which I'm using as an embedded browser within my app. I've noticed that links in webpages that open new windows are ignored without any call into my code. I've tried breakpointing on - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType and then selecting a link that would open a popup window, and the breakpoint is never hit. Is there anything I can do to intercept that selection of the