popup

Pop up image on mouse hover

↘锁芯ラ 提交于 2019-12-11 05:54:55
问题 I am using asp.net 2.0 and c#. I have a datagrid in which I have a image control, i.e. <asp:Image ID="ImagePreview" runat="server" Width="62px" Height="62px" /> for which I am setting the image URL from code behind, i.e.the image exist in the physical folder. I want to open a pop up with the image on mousehover. Please help me. Thanks in advance. Kindly let me know if any other information is required. 回答1: Please use JavaScript for this: ImagePreview.Attributes.Item("onMouseOver") =

How to remove “save&new” button from popup in odoo?

大兔子大兔子 提交于 2019-12-11 05:49:14
问题 I have a one2many field, and when I click to create a new record, I have 2 buttons. I want to remove the "Save & New" button and keep the "Save & Close" button. 回答1: I hope you do not mind sleazy hacks. In your form view you can try this. You may need to clear your cache before it works for you. This is only sensible if you do not want it to appear but its not really a security thing just for looks and process. You may need to ensure the class selector is correct for your version. I tested

How to close Ionic2 Datetime popup without clicking Cancel button

邮差的信 提交于 2019-12-11 05:48:43
问题 In an Ionic 2 project, I need make the user logout after a certain idle timeout. While doing so, I noticed that I cannot close the Datetime popup is before invoking the logout event and redirecting to the login page. I need to close that popup before redirecting to the login page. Below is the code sample I an working on <ion-datetime (ionCancel)="onCancelDateTime()" [(ngModel)]="dateTime"> </ion-datetime> The (ionCancel) event is fired when close the popup. Is there a way to invoke the

Wpf Popup loses focus but stays opened

时间秒杀一切 提交于 2019-12-11 05:42:51
问题 I have the following Popup: <Popup Name="popupBind" AllowsTransparency="True" Helpers:FocusHelper.IsFocused="{Binding RelativeSource={RelativeSource Self}, Path=IsOpen, Mode=OneWay}" HorizontalOffset="-30" IsOpen="{Binding IsBindingBegun, Mode=TwoWay}" Placement="Bottom" PlacementTarget="{Binding ElementName=bindButton}" StaysOpen="False" > <Border Background="{DynamicResource {x:Static Styles:CommonStyles.ButtonsPanelBackgroundKey}}" BorderBrush="Black" BorderThickness="1" Padding="0">

How to know when popup is closed in javascript

霸气de小男生 提交于 2019-12-11 05:36:45
问题 This code will open go.com in popup window: <a href="javascript:void(0)" onClick="javascript:window.open('http://go.com','','status=yes,scrollbars=yes,toolbar=no,menubar=no,location=no ,width=300px,height=300px')">open</a> and I want to use alert('closed!') in main page, when popup is closed and I can't edit popup page for use onunload="alert('closed!')" , because the popup page is an external page and I can't change the code like var mywindow = window.open('http://go.com') ... Thanks. 回答1:

Joomla 1.7 popup extension to load module inside

旧城冷巷雨未停 提交于 2019-12-11 05:14:10
问题 Please let me know, if there any extensions available to display module inside the popup, and popup should load after user login. Scernario : I have opinion poll module, which should popup once after user login into the website. I need to specify the module from the backend, either by id or module position. The user will vote for the poll after login into the website and close the popup after voting. It will be great if it is Non-commercial extensions. Please suggest me on this. 回答1: Try this

Chrome extension: create div on text highlight

牧云@^-^@ 提交于 2019-12-11 05:00:20
问题 I'm looking to create a create a chrome extension which gets the currently highlighted text and creates a div just under the text, like the chrome dictionary app. Does anyone know what sort of popup this is, or how it is achieved? Thanks! Tom 回答1: There will be two HTMLs , a popup.html - the view, and a background.html - that will be for routing, calculations, etc., the base functionality of your Extension. As an attempt to answer your question, the way you communicate from one html to other

$(this).css(“width”) not working on ancohor tags in Safari

徘徊边缘 提交于 2019-12-11 04:38:34
问题 I'm using CSS selectors to generate custom pop-ups for a web templates - basically, some some the producers aren't comfortable with JS and I need an easy way for them to set pop-up sizes etc. I'm not really interested in the merits of this approach, but rather wish to understand why jquery seems to be unable to get the width and height as defined in the CSS for a anchor in Safari. See: http://f1shw1ck.com/jquery_sandbox/csspops.html The meat of my question: For the selector a.popup {width:

UWP: Popup MaxWidth

亡梦爱人 提交于 2019-12-11 04:25:31
问题 I have a Popup which contains an ItemsControl (I can use ListBox if needed) which its items are arranged horizontally. Since the total width of the items can exceed the width of the screen, I need to limit the size of the popup width. My question is how can I limit the size of the popup? I've tried to use MaxWidth, but it doesn't work :( <Popup x:Name="puSoldItems" IsOpen="False" IsLightDismissEnabled="True" MaxWidth="{Binding ActualWidth, ElementName=_This}" ScrollViewer.HorizontalScrollMode

How to set a Popup to be always visible on the top in GWT

核能气质少年 提交于 2019-12-11 04:16:07
问题 I have a loading popup that I need to display on the top of the page, even if the user scroll down. What I tried so far is to set the popup position as follows setPopupPosition(Window.getClientWidth()/2 , 0); The popup shows up on the absolut top. 回答1: The situation can be resolved easily if you view it from a different angle: Not the popup position should adjust to the page - instead, the page should scroll behind the centering popup, e.g.: final ScrollPanel scrollPanel = new ScrollPanel();