|
 |
aspx_professional thread: Close popup window with button
Message #1 by "Sean Marchiafava" <smarch@c...> on Wed, 29 Jan 2003 20:25:04
|
|
Thanks,
I do this very thing in several other pages but for some reason was
thinking that this would supersede my server side handler and it would
not run. I have to remember that this allows client side functionality
along with the ability to still run server side code.
Much appreciated.
Sean
> In your pop-up script:
g_win =3D window.open...
In your code behind:
CancelButton.Attributes.Add("onclick", "q_win.close()");
This should close the window.before the page submits
-----Original Message-----
From: Sean Marchiafava [mailto:smarch@c...]=20
Sent: 29. januar 2003 21:25
To: ASPX_Professional
Subject: [aspx_professional] Close popup window with button
I have a javascript function that pops up windows with specific input=20
controls loaded(ie Calendar). If a user decides to hit the cancel
button (whick clears all form values) on the page that launched this
popup the=20
popup window is orphaned. I attempted to push javascript to the client=20
from the cancel button to close any windows but the window object is
lost=20
due to postback and will not find the popup. Any suggestion would be=20
appreciated.
Thanks,
Sean =20
---
Change your mail options at http://p2p.wrox.com/manager.asp or=20
to unsubscribe send a blank email to
|
|
 |