popup

Cross domain popup window with return value

空扰寡人 提交于 2020-01-11 03:38:05
问题 This is the setup: I have two websites on two different domains: www.website1.com www.someotherwebsite.com This is what I want to do: When a user is on www.website1.com and clicks a link, I want a window to popup showing www.someotherwebsite.com . When the user clicks a button in the popup window (showing www.someotherwebsite.com ) I want that window to close and have a value returned. I want the value returned from the popup window to be placed (into a div, or into a javascript call, or

how to open new window through javascript when pop up is blocked

守給你的承諾、 提交于 2020-01-11 03:13:25
问题 How can I open a new window through javascript when popup is blocked in IE and Firefox. Below is the code: <%@ Page language="c#" AutoEventWireup="false" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <html> <head> <title>SessionRedirect</title> <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"> <meta name="CODE_LANGUAGE" Content="C#"> <meta name=vs_defaultClientScript content="JavaScript"> <meta name=vs_targetSchema content="http://schemas.microsoft.com

Java - Right Clicking JTabbledPane Tab

拟墨画扇 提交于 2020-01-10 05:38:06
问题 I have it working, however the popup menu appears when you right click anywhere inside the tab. I only would like it to appear when you right click the top of the tab (the name). I cannot figure out how to do this. Any help is appreciated. Thanks. 回答1: Try adding your popup to the custom component demonstrated in TabComponentsDemo. 来源: https://stackoverflow.com/questions/9220889/java-right-clicking-jtabbledpane-tab

WPF Popup focus in data grid

心不动则不痛 提交于 2020-01-10 02:02:22
问题 I'm creating a custom UserControl to be used inside a DataGrid editing template. It looks like this: <UserControl x:Class="HR.Controls.UserPicker" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:tk="http://schemas.microsoft.com/wpf/2008/toolkit" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Grid> <TextBlock x:Name="PART_TextBox" Text="Hello WOrld" /> <Popup Width="234" Height="175" IsOpen="True" StaysOpen="True" Placement="Bottom" PlacementTarget="{Binding

Is there a way to determine if a <select> dropdown menu is open?

孤人 提交于 2020-01-09 03:43:27
问题 I'm looking for a way to determine if/when a <select> element's menu is open. I don't need to force it to open or close, just figure out if it's open or closed at a given time. I can listen to events for focus/blur, mouseup/mousedown, etc., but I don't think I can reliably figure out the state of the menu from those events. For example, mousedown followed by mouseup could mean the user clicked and dragged to a selection and released (in which case the menu is now closed) or clicked and

how to popup image over the screen after clicking the image

混江龙づ霸主 提交于 2020-01-07 06:58:21
问题 In my code, there is a lot of image in a table. I want to click a photo & then the photo will popup in a large size over the screen. But I do not have much idea about javascript & jquery. I try to do this but the problem is it popup a box but don't show the picture. I know that there is a problm in script to show the picture. can u please tell me where is the wrong or give me a proper code for popup image after click. my header link is below. is there need any other link to be added?? <script

how to use Colorbox popup without disabling the parent screen

爷,独闯天下 提交于 2020-01-07 06:38:21
问题 I have been asked to look after a web application. The previous developer has used colorbox to display popup window. When the popup is open it disables the parent screen. Is it possible to have another popup in the same page using colorbox which will not disable the parent screen. i.e click in the parent window without closing the colorbox window. The web app is built with asp.net and vb.net. Its a online portal for employers. The code for opening the colorbox popup is given below. <span

How to put opened popUps into array and make them all on top each time new one is created?

我的未来我决定 提交于 2020-01-07 05:27:54
问题 So to open popUps I use <script> openWin = function(name, width, height, left, top){ left=left+1; top=top+1; var file='./'+name+'.flv?action=read'; var settings='width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top+''; //alert(file); //alert(settings); var win = window.open(file, name, settings); } </script> I wonder how to put popUps into array when opening new one and make all created popUps on top each time new one is created? 回答1: Just create an empty

pop up window opens fullscreen in firefox though sizes are given

只愿长相守 提交于 2020-01-07 05:08:10
问题 I'm opening a Popup, it opens in internet explorer and mozilla firefox. But firefox ignores the given sizes, so a fullscreen popup is created. Following code: <a href="agb.html" target="_blank" onclick="return popup(this.href);">linkname</a> Following function: <script type="text/javascript"> function popup (url) { fenster = window.open(url, "Popup", "width=640,height=700,resizable=yes,scrollbars=yes"); fenster.focus(); return false; } </script> 回答1: This is what I have on a dev site which I

Simple pop up in jQuery for multiple table rows?

落花浮王杯 提交于 2020-01-07 01:48:30
问题 I would like to put a simple pop up in my table to display additional details regarding each row. I just want to ask for ideas on how to show the pop up in every row. Currently the pop up is only shown for the first one. Here's my code: @foreach (var name in Model){ <table> <tr> <td>Name</td> <td> <button id="@name.id">Show</button></td> </tr> </table> } Script: <script type="text/javascript"> $(function() { $('#').click(function() { //what should I put in the #? considering that it would