[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

=?Utf-8?B?cm9kY2hhcg==?=

4/15/2004 5:38:00 PM

I use a java pop up to select a month which shows a
calender of events in that month. I used code from a
website which offers code of the type. Can I get the pop
up to close when the selected month page opens. I have a
close button on the popup and I know it will go into the
back ground when I click outside of it, but I would like
it to close automatically. Can this be done. I will need
code to insert in Front Page.
3 Answers

Steve Easton

4/15/2004 6:37:00 PM

0

Try adding the following to the body tag in the pop up.

onblur="parent.close()"

Or you could also just add parent.close(); to the function that launches the
calendar window.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
"Webmaster" <anonymous@discussions.microsoft.com> wrote in message
news:1d67c01c42310$75afc940$a101280a@phx.gbl...
> I use a java pop up to select a month which shows a
> calender of events in that month. I used code from a
> website which offers code of the type. Can I get the pop
> up to close when the selected month page opens. I have a
> close button on the popup and I know it will go into the
> back ground when I click outside of it, but I would like
> it to close automatically. Can this be done. I will need
> code to insert in Front Page.


Tom Pepper

4/15/2004 11:41:00 PM

0

Steve: Will that work with Java (which is what the OP was addressing).
Or, did the OP mean Javascript?
--
-----
Tom Pepper Willett
Microsoft MVP - FrontPage
http://www.microsoft.com/office/frontpage/prodinfo/de...
http://msdn.microsoft.com/office/understanding/...
----
"Steve Easton" <admin@95isalive.com> wrote in message
news:%23g1DHkxIEHA.1608@TK2MSFTNGP11.phx.gbl...
| Try adding the following to the body tag in the pop up.
|
| onblur="parent.close()"
|
| Or you could also just add parent.close(); to the function that
launches the
| calendar window.
|
|
| --
| Steve Easton
| Microsoft MVP FrontPage
| 95isalive
| This site is best viewed..................
| ..............................with a computer
| "Webmaster" <anonymous@discussions.microsoft.com> wrote in message
| news:1d67c01c42310$75afc940$a101280a@phx.gbl...
| > I use a java pop up to select a month which shows a
| > calender of events in that month. I used code from a
| > website which offers code of the type. Can I get the pop
| > up to close when the selected month page opens. I have a
| > close button on the popup and I know it will go into the
| > back ground when I click outside of it, but I would like
| > it to close automatically. Can this be done. I will need
| > code to insert in Front Page.
|
|


Steve Easton

4/16/2004 1:18:00 PM

0

I'm thinking they meant javascript.
onblur="parent.close()" will work as a stand alone and close the page when
it looses focus. ( is minimized to the taskbar )
If the pop up is a child page it will simply close. If it isn't a child
page the viewer will receive the prompt about attempting to close the window
and will have to click Yes.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer

"Tom Pepper Willett" <tompepper@mvps.org> wrote in message
news:eaRC4M0IEHA.964@TK2MSFTNGP10.phx.gbl...
> Steve: Will that work with Java (which is what the OP was addressing).
> Or, did the OP mean Javascript?
> --
> -----
> Tom Pepper Willett
> Microsoft MVP - FrontPage
> http://www.microsoft.com/office/frontpage/prodinfo/de...
> http://msdn.microsoft.com/office/understanding/...
> ----
> "Steve Easton" <admin@95isalive.com> wrote in message
> news:%23g1DHkxIEHA.1608@TK2MSFTNGP11.phx.gbl...
> | Try adding the following to the body tag in the pop up.
> |
> | onblur="parent.close()"
> |
> | Or you could also just add parent.close(); to the function that
> launches the
> | calendar window.
> |
> |
> | --
> | Steve Easton
> | Microsoft MVP FrontPage
> | 95isalive
> | This site is best viewed..................
> | ..............................with a computer
> | "Webmaster" <anonymous@discussions.microsoft.com> wrote in message
> | news:1d67c01c42310$75afc940$a101280a@phx.gbl...
> | > I use a java pop up to select a month which shows a
> | > calender of events in that month. I used code from a
> | > website which offers code of the type. Can I get the pop
> | > up to close when the selected month page opens. I have a
> | > close button on the popup and I know it will go into the
> | > back ground when I click outside of it, but I would like
> | > it to close automatically. Can this be done. I will need
> | > code to insert in Front Page.
> |
> |
>
>