Open Popup from a popup window

I have already opened a popup[1] with no toolbar ... From that popup I have to open another popup[2] window.

But the new popup window opens in that popup[1] only instead of opening in popup[2].

Please suggest.

 


CSR
~ Please Mark as Answer if it solves your query ~
0
SATISD9X
9/26/2008 12:21:37 PM
asp.net.client-side 24353 articles. 2 followers. Follow

4 Replies
1314 Views

Similar Articles

[PageSpeed] 31

Whenever you open a pop-up from a window then it treats that window as parent window.

So whatever is happening in you case natural. If you want a seperate window then open it from the main window itself.

0
mcr_subbu
9/26/2008 12:55:57 PM
target="_blank" for opening links in new windows
0
shikharjain2007
9/26/2008 1:07:35 PM

Post the code that opens the popups.

NC...

 

0
NC01
9/26/2008 1:20:26 PM

Your problem is probably because you are using the same window ID (second argument to window.open) in every call to window.open. Try this:

Page1.aspx:

<form id="Form1" method="post" runat="server">
 <input onclick="openWindow();" type="button" value="Open Window">
</form>

<script type="text/javascript">
<!--
function openWindow()
{
 var windowFeatures =
  'channelmode=no,directories=no,fullscreen=no,' +
  'location=no,dependent=yes,menubar=no,resizable=no,scrollbars=yes,' +
  'status=no,toolbar=no,titlebar=no,' +
  'left=0,top=0,width=100px,height=100px';
 window.open('Page2.aspx', 'NewWindow_' + new Date().getTime(), windowFeatures);
}
// -->
</script>

Page2.aspx:

<form id="Form1" method="post" runat="server">
 <input onclick="openWindow();" type="button" value="Open Window">
</form>

<script type="text/javascript">
<!--
function openWindow()
{
 var windowFeatures =
  'channelmode=no,directories=no,fullscreen=no,' +
  'location=no,dependent=yes,menubar=no,resizable=no,scrollbars=yes,' +
  'status=no,toolbar=no,titlebar=no,' +
  'left=0,top=0,width=100px,height=100px';
 window.open('Page3.aspx', 'NewWindow_' + new Date().getTime(), windowFeatures);
}
// -->
</script>

NC...

0
NC01
9/26/2008 1:30:05 PM
Reply:

Similar Artilces:

superreview granted: [Bug 263844] Javascript window.close() on popup not working when popup is opened in tab : [Attachment 162257] set opener on opened windows diverted into tabs
Boris Zbarsky <bzbarsky@mit.edu> has granted Boris Zbarsky <bzbarsky@mit.edu>'s request for superreview: Bug 263844: Javascript window.close() on popup not working when popup is opened in tab https://bugzilla.mozilla.org/show_bug.cgi?id=263844 Attachment 162257: set opener on opened windows diverted into tabs https://bugzilla.mozilla.org/attachment.cgi?id=162257&action=edit ------- Additional Comments from Boris Zbarsky <bzbarsky@mit.edu> r+sr=bzbarsky. Dan, thanks for doing this! I really wish we could factor some of this code that's being copied f...

open popup window with click on image and datalist in popup window
 I have a picture,i want to when i click on it a popup window open,in that pop up window i want to have a data list that in every field of it be a link and a picture,when user click on a link with a url go to another website in that pop up window,how can I do this senario? Where are you having a problem? We can't build the thing for you. Post the code that you have so far. NC...    I want when I click on a picture a popup window open Like this? <img src="yourImageFile.jpg" onclick="window.open('Page2.aspx');" /> See http://www.ja...

superreview requested: [Bug 263960] popup blocker fails to stop synthetic click popup in single window mode : [Attachment 161999] abort tab opening if window is a disallowed popup
Dan M <danm.moz@gmail.com> has asked Peter Van der Beken <peterv@propagandism.org> for superreview: Bug 263960: popup blocker fails to stop synthetic click popup in single window mode https://bugzilla.mozilla.org/show_bug.cgi?id=263960 Attachment 161999: abort tab opening if window is a disallowed popup https://bugzilla.mozilla.org/attachment.cgi?id=161999&action=edit ...

superreview granted: [Bug 263960] popup blocker fails to stop synthetic click popup in single window mode : [Attachment 161999] abort tab opening if window is a disallowed popup
Johnny Stenback <jst@mozilla.jstenback.com> has granted Dan M <danm.moz@gmail.com>'s request for superreview: Bug 263960: popup blocker fails to stop synthetic click popup in single window mode https://bugzilla.mozilla.org/show_bug.cgi?id=263960 Attachment 161999: abort tab opening if window is a disallowed popup https://bugzilla.mozilla.org/attachment.cgi?id=161999&action=edit ------- Additional Comments from Johnny Stenback <jst@mozilla.jstenback.com> sr=jst too! ...

how to open popup window through javascript in code behind( popup window should be aligned center)
I want to use javascript in code behind to open popup window. I have Datalist inside which there is linkbutton. On click of linkbutton open popup window through javascript & that pop up window should be aligned centraly.Regards,Mahesh--------------------click "Mark as Answer" on the post that helps you. Friend, Try this sample . <html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server">    <title>Untitled Page</title>        <style>    .blue{ bac...

Open Popup Window and Close the window that Opened it
I'm using some code that I found on this site to open a Popup window with a Button Click for a Crystal Report: Dim PopUpScript As String = "<script language='javascript'>" + "window.open(" & Chr(39) & strExportFile & Chr(39) & ");</script>" Page.ClientScript.RegisterStartupScript(Me.GetType(), "PopUpWindow", PopUpScript, False) After the Popup Window shows the Report I would like to close the window that opened this popup window.  Thanks, Mark just add window.close(); in Dim PopUpScript As String ...

Opening a popup from a popup
I can open a pop up window the following code and it works fine....  <asp:HyperLink ID="HLOPtionTakeoff" runat="server" ImageUrl="~/Images/Icons/application_view_gallery.png"NavigateUrl="~/BuilderAdmin/BuilderMaint/SelectionsPages/SelectionsTakeoff.aspx" onclick="window.open (this.href, 'popupwindow', 'scrollbars=yes,width=850,height=580,resizable'); return false;" Style="position: static" ToolTip="Select Options" Target="_blank" ></asp:HyperLink> Once this pop up is open, I want to open another pop up from within it.  To do so I'm using the same...

problem in openning Popup using the AjaxControlToolkit and ModalPopupExtender(Newly opened popup goes behind the existing popup
Myself using the  AjaxControlToolkit  to open the panel as the popup. When i tried to open the multiple popups the newly opened popup goes behind the existing popup.There are two links available if u click any  link the popup is opened. try to open the multiple popups so you can able to address the problem. One popul overlay with another when you try to open the popup alternatively. My requirement is newly opened popup shoul open in front of the existion popup.Am not able to understand the problem. Please find the code am using below,  <%@ Page Language="C#" ...

From popup window i want one more popup window
can anybody help me soon... i have 2 popup pages pop1 and pop2............when i click one likbutton i want to popup pop1.aspx page and when i click pop1.aspx link button i want pop2.aspx.based on my coding this is working in other machines...but from server machine pop2 is not coming...    master page link button coding ***************************************************************************************************************************  Page.ClientScript.RegisterStartupScript(Me.GetType(), "popup", "ShowDNNReportPopup('" & user4mapping &...

Popup Window (window.opener)
Hi, I have an ASP.NET application. On one of my pages I have a link to a popup. This popup has a link. When the user clicks this link my popup closes and another Popup is displayed. In this second Popup I want to redirect the user to a fifferent page in my application when the popup closes. Is this possible as another popup opened this second popup so I cannot use 'window.opener'. Any advice is much appreciated. Thanks, C can you please explain a bit more clearly, what I got is that you hae total 4 windows isn't it? are you using hyperlink control or window.openfeed...

Popup on Popup
My website has a hidden panel of help codes that users can display or hide while filling out forms.  I use Javascript to show and hide it.  On some of the forms I have sub forms that are displayed in an Ajax Modal Popup.  My problem is that the help panel gets grayed out when the users are on a modal sub form. Is there any way to make the help panel display properly on both the modal popup and the regular form?  I don't want to have multiple help panels. Make sure the z-index css property of the help panel is higher then any z-index your popups will have. That shoul...

popup from a popup
Hi,My web application uses a modal popup to display an edit record form.. in one of these forms there is an option to open another popup windows (again Modal) to show some extra data..everything works fine except for when i submit the second window.. the parent window opens in a new window?i have put <target ="_self"> in the head of each document but it has not worked.. can anyone off any sort of explanation?  How are you launching the modal popups?  Please post some code.Please remember to "mark as answered" posts that have helped you. -----http://lsudotnet.blog...

Popups that are not popups
I have AdBlock enables and am blocking pop-ups in FF, but from time to time, I get a medium sized pop-up window apearing. (v1.5, Win XP Pro). Have I got something misconfigured or do I need an additional extension? Thx -- Pete Holsberg Columbus, NJ "Having a smoking area in a restaurant is like having a peeing area in a pool." - Thomas Pfeffer, American Heart Association On 3/29/2006 2:19 PM On a whim, Pete Holsberg pounded out on the keyboard > I have AdBlock enables and am blocking pop-ups in FF, but from time to time, I get a medium sized pop-up window apea...

Keep track of child popup window when opening multiple child popups.
hi, what is the best way to keep track of child popup windows? is there an ID to identify each child window when using javascripts? reason being I need to have a parent which can open a child window.. then the child window can also open a grandchild window.... so there should be a way on identifying which child window belongs to which parent? am i making sense?Alvin ShihSoftware DeveloperMCP MCTS MCPD Hello, shihalv, When you open a window using window.open, you can hold a reference to that child window from the parent window:<script type="text/javascript"> var childWindow = w...

Web resources about - Open Popup from a popup window - asp.net.client-side

Window - Wikipedia, the free encyclopedia
This article is about the part of a building. For the Microsoft operating system, see Microsoft Windows . For other uses, see Window (disambiguation) ...

Microsoft Windows Information, Solutions, Tools - Windows IT Pro
Microsoft Windows information and solutions for IT pros. Topics include cloud computing, Windows Server, Exchange, Outlook, PowerShell, virtualization, ...

The Windows Blog
The Windows Blog is Microsoft's Official Blog for the Windows Operating System.

Windows 10: Security features for the enterprise
... modern operating system (OS) architecture that puts the employee in the driver’s seat. At the same time, breaches targeting traditional Windows ...

Microsoft has a master plan with its Cortana digital assistant and Windows 10
Microsoft is working on putting Cortana, its Siri-like personal digital assistant, anywhere and everywhere within Windows 10, reports The Verge ...

It lives! Volunteers from Microsoft release open-source fork of Windows Live Writer
A group of Microsoft engineers today made good on a June promise and released an open-source version of the venerable Windows Live Writer, a ...

Windows 7 now supports the Xbox One wireless controller adapter
... dropping $25 on one of those wireless adapters for PC so I can use it beyond just Xbox gaming. But I haven't. Not yet! I'm still on Windows ...

Uber upgrades Windows app with Cortana, desktop support
... anytime, but what if you're sitting at a desktop PC? Well, now you can do it there, too. Uber announced today that it used the Universal Windows ...

Apple Products Outshine Windows, Android in Enterprises, Survey Shows
This slide show looks at how enterprises are embracing Apple computer products, and why IT professionals see great value in their use by employees. ...

As Apple Slowly Starts Adopting Carrier Billing, Microsoft Follows On With Integration For All Windows ...
Terry Myerson, executive vice president of operating systems at Microsoft (Photo by Andrew Burton/Getty Images) Apple has begun trying out carrier ...

Resources last updated: 12/13/2015 11:57:16 AM