RE: Help with popup

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Nikander & Margriet Bruggeman (NikanderMargrietBruggeman_at_discussions.microsoft.com)
Date: 02/18/05


Date: Fri, 18 Feb 2005 02:17:03 -0800

Or you might call the opener window. We've included small sample code, one
containing some code from a default.htm page, the other one should be saved
in 'open.htm'. The javascript from open.htm calls the opener page. Hth.

Kind regards,
Nikander & Margriet Bruggeman

Default.htm:

<html>
<head>
<script>
var strGlobal = "test1";

function SayHi()
{
  return "Hello!";
}

function ChangeGlobal()
{
  strGlobal = "aaa";
}
</script>
</head>
<body>

<a href="#" onClick="window.open('open.htm', 'myWin','toolbar=no,
directories=no, location=no, status=yes, menubar=no, resizable=no,
scrollbars=no, width=300, height=200'); return false">
Open</A>

<a href="javascript:ChangeGlobal()">Change</a>

</body>
</html>

Open.htm:

<html>
<body>

Open

<script>
alert(window.opener);
alert(window.opener.strGlobal);
</script>

</body>
</html>

"R. Thomas, aka Xtreme.Net" wrote:

> you might wanna take a look at query strings
> Hth..
> R. Thomas
>
> "Chris" wrote:
>
> > Hi,
> > I am loading a popup from my parent page when an image is clicked. How can I
> > now pass a value from a textbox to the popup page. Currently this is how I am
> > calling the popup from parent page
> >
> > <A href="javascript:GetInfo(txtRetVal', true)"><IMG height="16"
> > src="images/lookup.gif" width="16" align="middle" border="0"></A>
> >
> > txtRetVal is the name of the textbox on the parent page that accepts the
> > value returned from the popup.
> >
> > Thanks



Relevant Pages

  • Re: Parent Child Windows
    ... If your popup is a modal dialog window and you don't want to let a child ... the window.opener property is the parent window. ... >> I need the user to enter information in a textbox on the PopUp. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Help with popup
    ... > I am loading a popup from my parent page when an image is clicked. ... > now pass a value from a textbox to the popup page. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Help with popup
    ... I am loading a popup from my parent page when an image is clicked. ... now pass a value from a textbox to the popup page. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: .Net 2.0 / AJAX / Dynamically adding controls to the page
    ... mentioned popup. ... protected void btnRefresh_Click ... foreach (int id in SelectedEmployeeIds) ... the "trigger" on the parent page using the parameter from the link to run ...
    (microsoft.public.dotnet.framework.aspnet)
  • Solved! (was: Re: Anyone from MS, especially GWES group (was: Re: Pinning dialog on top of other di
    ... Michael J. Salamone wrote: ... The window style needs to be set to Overlapped, _not_ Popup. ... The parent must be the desktop (or something else other than the ... anyone from first-level telephone support could've helped me. ...
    (microsoft.public.windowsce.platbuilder)