PC Review


Reply
Thread Tools Rate Thread

child page remain, main to close

 
 
tom robertson
Guest
Posts: n/a
 
      14th Jul 2004
I have a main page that pops up a child page. I would
like the main page to close once the child page is open.
Using this.close(); at the moment but
a) this propmpts the user with a confirmation window
b) this operation closes both the main and the child
windows

is ther some code, or a function in frontpage that will
enable me to have the main page closed once the child has
popped up?

thanks,

Tom
 
Reply With Quote
 
 
 
 
Steve Easton
Guest
Posts: n/a
 
      14th Jul 2004
Add this to the opening body tag for the page that you want to close:

onblur="parent.close; 'return.false;'"

So that the body tag looks like this:

<body onblur="parent.close; 'return.false;'">

Note that there is both a ' and a" at the end: '"


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

"tom robertson" <(E-Mail Removed)> wrote in message
news:2cc7801c4699a$1a4228c0$(E-Mail Removed)...
> I have a main page that pops up a child page. I would
> like the main page to close once the child page is open.
> Using this.close(); at the moment but
> a) this propmpts the user with a confirmation window
> b) this operation closes both the main and the child
> windows
>
> is ther some code, or a function in frontpage that will
> enable me to have the main page closed once the child has
> popped up?
>
> thanks,
>
> Tom



 
Reply With Quote
 
Jens Peter Karlsen[FP-MVP]
Guest
Posts: n/a
 
      14th Jul 2004
Parent.close() in the child window and it will give the user a prompt.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.

-----Original Message-----
From: tom robertson [private.php?do=newpm&u=]
Posted At: 14. juli 2004 14:00
Posted To: microsoft.public.frontpage.client
Conversation: child page remain, main to close
Subject: child page remain, main to close


I have a main page that pops up a child page. I would like the main page
to close once the child page is open.
Using this.close(); at the moment but
a) this propmpts the user with a confirmation window
b) this operation closes both the main and the child windows

is ther some code, or a function in frontpage that will enable me to
have the main page closed once the child has popped up?

thanks,

Tom

 
Reply With Quote
 
tom robertson
Guest
Posts: n/a
 
      14th Jul 2004
Thanks for this. Did as instructed but parent page failed
to close. Parent page html is:

<html>

<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Click here</title>
<script>

//Modeless window script- By DynamicDrive.com
//for full source code and terms of use
//visit http://www.dynamicdrive.com

function modelesswin(url,mwidth,mheight){
if (document.all&&window.print) //if ie5
eval('window.showModelessDialog
(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialo
gHeight:'+mheight+'px")')
else
eval('window.open
(url,"file:///Z:/Form/Test/partnersearch.htm","width='+mwi
dth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
}

modelesswin
("file:///Z:/Form/Test/partnersearch.htm",800,800)

</script>

</head>

<body>

</body>

</html>


partnersearch.htm has your script in the body tag.

Tom

>-----Original Message-----
>Add this to the opening body tag for the page that you

want to close:
>
>onblur="parent.close; 'return.false;'"
>
>So that the body tag looks like this:
>
><body onblur="parent.close; 'return.false;'">
>
>Note that there is both a ' and a" at the end: '"
>
>
>--
>Steve Easton
>Microsoft MVP FrontPage
>95isalive
>This site is best viewed............
>........................with a computer
>
>"tom robertson" <(E-Mail Removed)>

wrote in message
>news:2cc7801c4699a$1a4228c0$(E-Mail Removed)...
>> I have a main page that pops up a child page. I would
>> like the main page to close once the child page is

open.
>> Using this.close(); at the moment but
>> a) this propmpts the user with a confirmation window
>> b) this operation closes both the main and the child
>> windows
>>
>> is ther some code, or a function in frontpage that will
>> enable me to have the main page closed once the child

has
>> popped up?
>>
>> thanks,
>>
>> Tom

>
>
>.
>

 
Reply With Quote
 
tom robertson
Guest
Posts: n/a
 
      14th Jul 2004
Hi sorry for my mistake. I have now put your script into
the body tag of the parent file (the one i want to
close) - see below. However it still does not want to
close.

Thanks. T

<html>

<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Click here</title>
<script>

//Modeless window script- By DynamicDrive.com
//for full source code and terms of use
//visit http://www.dynamicdrive.com

function modelesswin(url,mwidth,mheight){
if (document.all&&window.print) //if ie5
eval('window.showModelessDialog
(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialo
gHeight:'+mheight+'px")')
else
eval('window.open
(url,"file:///Z:/Form/Test/partnersearch.htm","width='+mwi
dth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
}

modelesswin
("file:///Z:/Form/Test/partnersearch.htm",800,800)

</script>

</head>

<body onblur="parent.close; 'return.false;'">


</body>

</html>
>-----Original Message-----
>Thanks for this. Did as instructed but parent page

failed
>to close. Parent page html is:
>
><html>
>
><head>
><meta http-equiv="Content-Type" content="text/html;
>charset=windows-1252">
><meta name="GENERATOR" content="Microsoft FrontPage 4.0">
><meta name="ProgId" content="FrontPage.Editor.Document">
><title>Click here</title>
><script>
>
>//Modeless window script- By DynamicDrive.com
>//for full source code and terms of use
>//visit http://www.dynamicdrive.com
>
>function modelesswin(url,mwidth,mheight){
>if (document.all&&window.print) //if ie5
>eval('window.showModelessDialog
>

(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialo
>gHeight:'+mheight+'px")')
>else
>eval('window.open
>

(url,"file:///Z:/Form/Test/partnersearch.htm","width='+mwi
>dth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
>}
>
>modelesswin
>("file:///Z:/Form/Test/partnersearch.htm",800,800)
>
></script>
>
></head>
>
><body>
>
></body>
>
></html>
>
>
>partnersearch.htm has your script in the body tag.
>
>Tom
>
>>-----Original Message-----
>>Add this to the opening body tag for the page that you

>want to close:
>>
>>onblur="parent.close; 'return.false;'"
>>
>>So that the body tag looks like this:
>>
>><body onblur="parent.close; 'return.false;'">
>>
>>Note that there is both a ' and a" at the end: '"
>>
>>
>>--
>>Steve Easton
>>Microsoft MVP FrontPage
>>95isalive
>>This site is best viewed............
>>........................with a computer
>>
>>"tom robertson" <(E-Mail Removed)>

>wrote in message
>>news:2cc7801c4699a$1a4228c0$(E-Mail Removed)...
>>> I have a main page that pops up a child page. I would
>>> like the main page to close once the child page is

>open.
>>> Using this.close(); at the moment but
>>> a) this propmpts the user with a confirmation window
>>> b) this operation closes both the main and the child
>>> windows
>>>
>>> is ther some code, or a function in frontpage that

will
>>> enable me to have the main page closed once the child

>has
>>> popped up?
>>>
>>> thanks,
>>>
>>> Tom

>>
>>
>>.
>>

>.
>

 
Reply With Quote
 
Steve Easton
Guest
Posts: n/a
 
      14th Jul 2004
Don't know if this has anything to do with it, but the following links are incorrect:
> (url,"file:///Z:/Form/Test/partnersearch.htm","width='+mwi
> >dth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')

and
("file:///Z:/Form/Test/partnersearch.htm",800,800)



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

"tom robertson" <(E-Mail Removed)> wrote in message
news:2cce701c469a0$36203220$(E-Mail Removed)...
> Hi sorry for my mistake. I have now put your script into
> the body tag of the parent file (the one i want to
> close) - see below. However it still does not want to
> close.
>
> Thanks. T
>
> <html>
>
> <head>
> <meta http-equiv="Content-Type" content="text/html;
> charset=windows-1252">
> <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
> <meta name="ProgId" content="FrontPage.Editor.Document">
> <title>Click here</title>
> <script>
>
> //Modeless window script- By DynamicDrive.com
> //for full source code and terms of use
> //visit http://www.dynamicdrive.com
>
> function modelesswin(url,mwidth,mheight){
> if (document.all&&window.print) //if ie5
> eval('window.showModelessDialog
> (url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialo
> gHeight:'+mheight+'px")')
> else
> eval('window.open
> (url,"file:///Z:/Form/Test/partnersearch.htm","width='+mwi
> dth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
> }
>
> modelesswin
> ("file:///Z:/Form/Test/partnersearch.htm",800,800)
>
> </script>
>
> </head>
>
> <body onblur="parent.close; 'return.false;'">
>
>
> </body>
>
> </html>
> >-----Original Message-----
> >Thanks for this. Did as instructed but parent page

> failed
> >to close. Parent page html is:
> >
> ><html>
> >
> ><head>
> ><meta http-equiv="Content-Type" content="text/html;
> >charset=windows-1252">
> ><meta name="GENERATOR" content="Microsoft FrontPage 4.0">
> ><meta name="ProgId" content="FrontPage.Editor.Document">
> ><title>Click here</title>
> ><script>
> >
> >//Modeless window script- By DynamicDrive.com
> >//for full source code and terms of use
> >//visit http://www.dynamicdrive.com
> >
> >function modelesswin(url,mwidth,mheight){
> >if (document.all&&window.print) //if ie5
> >eval('window.showModelessDialog
> >

> (url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialo
> >gHeight:'+mheight+'px")')
> >else
> >eval('window.open
> >

> (url,"file:///Z:/Form/Test/partnersearch.htm","width='+mwi
> >dth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
> >}
> >
> >modelesswin
> >("file:///Z:/Form/Test/partnersearch.htm",800,800)
> >
> ></script>
> >
> ></head>
> >
> ><body>
> >
> ></body>
> >
> ></html>
> >
> >
> >partnersearch.htm has your script in the body tag.
> >
> >Tom
> >
> >>-----Original Message-----
> >>Add this to the opening body tag for the page that you

> >want to close:
> >>
> >>onblur="parent.close; 'return.false;'"
> >>
> >>So that the body tag looks like this:
> >>
> >><body onblur="parent.close; 'return.false;'">
> >>
> >>Note that there is both a ' and a" at the end: '"
> >>
> >>
> >>--
> >>Steve Easton
> >>Microsoft MVP FrontPage
> >>95isalive
> >>This site is best viewed............
> >>........................with a computer
> >>
> >>"tom robertson" <(E-Mail Removed)>

> >wrote in message
> >>news:2cc7801c4699a$1a4228c0$(E-Mail Removed)...
> >>> I have a main page that pops up a child page. I would
> >>> like the main page to close once the child page is

> >open.
> >>> Using this.close(); at the moment but
> >>> a) this propmpts the user with a confirmation window
> >>> b) this operation closes both the main and the child
> >>> windows
> >>>
> >>> is ther some code, or a function in frontpage that

> will
> >>> enable me to have the main page closed once the child

> >has
> >>> popped up?
> >>>
> >>> thanks,
> >>>
> >>> Tom
> >>
> >>
> >>.
> >>

> >.
> >



 
Reply With Quote
 
Jens Peter Karlsen[FP-MVP]
Guest
Posts: n/a
 
      14th Jul 2004
It needs to go in the child page. The initial page doesn't have parents.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.

-----Original Message-----
From: tom robertson [private.php?do=newpm&u=]
Posted At: 14. juli 2004 14:44
Posted To: microsoft.public.frontpage.client
Conversation: child page remain, main to close
Subject: Re: child page remain, main to close


Hi sorry for my mistake. I have now put your script into the body tag of
the parent file (the one i want to
close) - see below. However it still does not want to close.

Thanks. T

<html>

<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252"> <meta name="GENERATOR" content="Microsoft
FrontPage 4.0"> <meta name="ProgId" content="FrontPage.Editor.Document">
<title>Click here</title>
<script>

//Modeless window script- By DynamicDrive.com //for full source code and
terms of use //visit http://www.dynamicdrive.com

function modelesswin(url,mwidth,mheight){ if
(document.all&&window.print) //if ie5 eval('window.showModelessDialog
(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialo
gHeight:'+mheight+'px")')
else
eval('window.open
(url,"file:///Z:/Form/Test/partnersearch.htm","width='+mwi
dth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
}

modelesswin
("file:///Z:/Form/Test/partnersearch.htm",800,800)

</script>

</head>

<body onblur="parent.close; 'return.false;'">


</body>

</html>
>-----Original Message-----
>Thanks for this. Did as instructed but parent page

failed
>to close. Parent page html is:
>
><html>
>
><head>
><meta http-equiv="Content-Type" content="text/html;
>charset=windows-1252"> <meta name="GENERATOR" content="Microsoft
>FrontPage 4.0"> <meta name="ProgId"
>content="FrontPage.Editor.Document">
><title>Click here</title>
><script>
>
>//Modeless window script- By DynamicDrive.com //for full source code
>and terms of use //visit http://www.dynamicdrive.com
>
>function modelesswin(url,mwidth,mheight){ if
>(document.all&&window.print) //if ie5 eval('window.showModelessDialog
>

(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialo
>gHeight:'+mheight+'px")')
>else
>eval('window.open
>

(url,"file:///Z:/Form/Test/partnersearch.htm","width='+mwi
>dth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
>}
>
>modelesswin
>("file:///Z:/Form/Test/partnersearch.htm",800,800)
>
></script>
>
></head>
>
><body>
>
></body>
>
></html>
>
>
>partnersearch.htm has your script in the body tag.
>
>Tom
>
>>-----Original Message-----
>>Add this to the opening body tag for the page that you

>want to close:
>>
>>onblur="parent.close; 'return.false;'"
>>
>>So that the body tag looks like this:
>>
>><body onblur="parent.close; 'return.false;'">
>>
>>Note that there is both a ' and a" at the end: '"
>>
>>
>>--
>>Steve Easton
>>Microsoft MVP FrontPage
>>95isalive
>>This site is best viewed............
>>........................with a computer
>>
>>"tom robertson" <(E-Mail Removed)>

>wrote in message
>>news:2cc7801c4699a$1a4228c0$(E-Mail Removed)...
>>> I have a main page that pops up a child page. I would like the main
>>> page to close once the child page is

>open.
>>> Using this.close(); at the moment but
>>> a) this propmpts the user with a confirmation window
>>> b) this operation closes both the main and the child windows
>>>
>>> is ther some code, or a function in frontpage that

will
>>> enable me to have the main page closed once the child

>has
>>> popped up?
>>>
>>> thanks,
>>>
>>> Tom

>>
>>
>>.
>>

>.
>


 
Reply With Quote
 
Steve Easton
Guest
Posts: n/a
 
      14th Jul 2004
back to the drawing board, I was wrong :-(


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

"tom robertson" <(E-Mail Removed)> wrote in message
news:2cce701c469a0$36203220$(E-Mail Removed)...
> Hi sorry for my mistake. I have now put your script into
> the body tag of the parent file (the one i want to
> close) - see below. However it still does not want to
> close.
>
> Thanks. T
>
> <html>
>
> <head>
> <meta http-equiv="Content-Type" content="text/html;
> charset=windows-1252">
> <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
> <meta name="ProgId" content="FrontPage.Editor.Document">
> <title>Click here</title>
> <script>
>
> //Modeless window script- By DynamicDrive.com
> //for full source code and terms of use
> //visit http://www.dynamicdrive.com
>
> function modelesswin(url,mwidth,mheight){
> if (document.all&&window.print) //if ie5
> eval('window.showModelessDialog
> (url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialo
> gHeight:'+mheight+'px")')
> else
> eval('window.open
> (url,"file:///Z:/Form/Test/partnersearch.htm","width='+mwi
> dth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
> }
>
> modelesswin
> ("file:///Z:/Form/Test/partnersearch.htm",800,800)
>
> </script>
>
> </head>
>
> <body onblur="parent.close; 'return.false;'">
>
>
> </body>
>
> </html>
> >-----Original Message-----
> >Thanks for this. Did as instructed but parent page

> failed
> >to close. Parent page html is:
> >
> ><html>
> >
> ><head>
> ><meta http-equiv="Content-Type" content="text/html;
> >charset=windows-1252">
> ><meta name="GENERATOR" content="Microsoft FrontPage 4.0">
> ><meta name="ProgId" content="FrontPage.Editor.Document">
> ><title>Click here</title>
> ><script>
> >
> >//Modeless window script- By DynamicDrive.com
> >//for full source code and terms of use
> >//visit http://www.dynamicdrive.com
> >
> >function modelesswin(url,mwidth,mheight){
> >if (document.all&&window.print) //if ie5
> >eval('window.showModelessDialog
> >

> (url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialo
> >gHeight:'+mheight+'px")')
> >else
> >eval('window.open
> >

> (url,"file:///Z:/Form/Test/partnersearch.htm","width='+mwi
> >dth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
> >}
> >
> >modelesswin
> >("file:///Z:/Form/Test/partnersearch.htm",800,800)
> >
> ></script>
> >
> ></head>
> >
> ><body>
> >
> ></body>
> >
> ></html>
> >
> >
> >partnersearch.htm has your script in the body tag.
> >
> >Tom
> >
> >>-----Original Message-----
> >>Add this to the opening body tag for the page that you

> >want to close:
> >>
> >>onblur="parent.close; 'return.false;'"
> >>
> >>So that the body tag looks like this:
> >>
> >><body onblur="parent.close; 'return.false;'">
> >>
> >>Note that there is both a ' and a" at the end: '"
> >>
> >>
> >>--
> >>Steve Easton
> >>Microsoft MVP FrontPage
> >>95isalive
> >>This site is best viewed............
> >>........................with a computer
> >>
> >>"tom robertson" <(E-Mail Removed)>

> >wrote in message
> >>news:2cc7801c4699a$1a4228c0$(E-Mail Removed)...
> >>> I have a main page that pops up a child page. I would
> >>> like the main page to close once the child page is

> >open.
> >>> Using this.close(); at the moment but
> >>> a) this propmpts the user with a confirmation window
> >>> b) this operation closes both the main and the child
> >>> windows
> >>>
> >>> is ther some code, or a function in frontpage that

> will
> >>> enable me to have the main page closed once the child

> >has
> >>> popped up?
> >>>
> >>> thanks,
> >>>
> >>> Tom
> >>
> >>
> >>.
> >>

> >.
> >



 
Reply With Quote
 
tom robertson
Guest
Posts: n/a
 
      14th Jul 2004
Incorrect?

they came from a script I am using to produce a modeless
window and point to a file on my local drive. The child
page is a modeless window, I wonder if this is the
problem?

regards,

t

>-----Original Message-----
>Don't know if this has anything to do with it, but the

following links are incorrect:
>>

(url,"file:///Z:/Form/Test/partnersearch.htm","width='+mwi
>>

>dth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
>and
>("file:///Z:/Form/Test/partnersearch.htm",800,800)
>
>
>
>--
>Steve Easton
>Microsoft MVP FrontPage
>95isalive
>This site is best viewed............
>........................with a computer
>
>"tom robertson" <(E-Mail Removed)>

wrote in message
>news:2cce701c469a0$36203220$(E-Mail Removed)...
>> Hi sorry for my mistake. I have now put your script

into
>> the body tag of the parent file (the one i want to
>> close) - see below. However it still does not want to
>> close.
>>
>> Thanks. T
>>
>> <html>
>>
>> <head>
>> <meta http-equiv="Content-Type" content="text/html;
>> charset=windows-1252">
>> <meta name="GENERATOR" content="Microsoft FrontPage

4.0">
>> <meta name="ProgId"

content="FrontPage.Editor.Document">
>> <title>Click here</title>
>> <script>
>>
>> //Modeless window script- By DynamicDrive.com
>> //for full source code and terms of use
>> //visit http://www.dynamicdrive.com
>>
>> function modelesswin(url,mwidth,mheight){
>> if (document.all&&window.print) //if ie5
>> eval('window.showModelessDialog
>>

(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialo
>> gHeight:'+mheight+'px")')
>> else
>> eval('window.open
>>

(url,"file:///Z:/Form/Test/partnersearch.htm","width='+mwi
>>

dth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
>> }
>>
>> modelesswin
>> ("file:///Z:/Form/Test/partnersearch.htm",800,800)
>>
>> </script>
>>
>> </head>
>>
>> <body onblur="parent.close; 'return.false;'">
>>
>>
>> </body>
>>
>> </html>
>> >-----Original Message-----
>> >Thanks for this. Did as instructed but parent page

>> failed
>> >to close. Parent page html is:
>> >
>> ><html>
>> >
>> ><head>
>> ><meta http-equiv="Content-Type" content="text/html;
>> >charset=windows-1252">
>> ><meta name="GENERATOR" content="Microsoft FrontPage

4.0">
>> ><meta name="ProgId"

content="FrontPage.Editor.Document">
>> ><title>Click here</title>
>> ><script>
>> >
>> >//Modeless window script- By DynamicDrive.com
>> >//for full source code and terms of use
>> >//visit http://www.dynamicdrive.com
>> >
>> >function modelesswin(url,mwidth,mheight){
>> >if (document.all&&window.print) //if ie5
>> >eval('window.showModelessDialog
>> >

>>

(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialo
>> >gHeight:'+mheight+'px")')
>> >else
>> >eval('window.open
>> >

>>

(url,"file:///Z:/Form/Test/partnersearch.htm","width='+mwi
>>

>dth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
>> >}
>> >
>> >modelesswin
>> >("file:///Z:/Form/Test/partnersearch.htm",800,800)
>> >
>> ></script>
>> >
>> ></head>
>> >
>> ><body>
>> >
>> ></body>
>> >
>> ></html>
>> >
>> >
>> >partnersearch.htm has your script in the body tag.
>> >
>> >Tom
>> >
>> >>-----Original Message-----
>> >>Add this to the opening body tag for the page that

you
>> >want to close:
>> >>
>> >>onblur="parent.close; 'return.false;'"
>> >>
>> >>So that the body tag looks like this:
>> >>
>> >><body onblur="parent.close; 'return.false;'">
>> >>
>> >>Note that there is both a ' and a" at the end: '"
>> >>
>> >>
>> >>--
>> >>Steve Easton
>> >>Microsoft MVP FrontPage
>> >>95isalive
>> >>This site is best viewed............
>> >>........................with a computer
>> >>
>> >>"tom robertson" <(E-Mail Removed)>
>> >wrote in message
>> >>news:2cc7801c4699a$1a4228c0$(E-Mail Removed)...
>> >>> I have a main page that pops up a child page. I

would
>> >>> like the main page to close once the child page is
>> >open.
>> >>> Using this.close(); at the moment but
>> >>> a) this propmpts the user with a confirmation

window
>> >>> b) this operation closes both the main and the

child
>> >>> windows
>> >>>
>> >>> is ther some code, or a function in frontpage that

>> will
>> >>> enable me to have the main page closed once the

child
>> >has
>> >>> popped up?
>> >>>
>> >>> thanks,
>> >>>
>> >>> Tom
>> >>
>> >>
>> >>.
>> >>
>> >.
>> >

>
>
>.
>

 
Reply With Quote
 
Steve Easton
Guest
Posts: n/a
 
      14th Jul 2004
Ok.

If the web is going to be published to a server the links won't work.
If it is going to be run on an intranet they "probably" will work.

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

"tom robertson" <(E-Mail Removed)> wrote in message
news:2d4d101c469b0$56bc7b50$(E-Mail Removed)...
> Incorrect?
>
> they came from a script I am using to produce a modeless
> window and point to a file on my local drive. The child
> page is a modeless window, I wonder if this is the
> problem?
>
> regards,
>
> t
>
> >-----Original Message-----
> >Don't know if this has anything to do with it, but the

> following links are incorrect:
> >>

> (url,"file:///Z:/Form/Test/partnersearch.htm","width='+mwi
> >>

> >dth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
> >and
> >("file:///Z:/Form/Test/partnersearch.htm",800,800)
> >
> >
> >
> >--
> >Steve Easton
> >Microsoft MVP FrontPage
> >95isalive
> >This site is best viewed............
> >........................with a computer
> >
> >"tom robertson" <(E-Mail Removed)>

> wrote in message
> >news:2cce701c469a0$36203220$(E-Mail Removed)...
> >> Hi sorry for my mistake. I have now put your script

> into
> >> the body tag of the parent file (the one i want to
> >> close) - see below. However it still does not want to
> >> close.
> >>
> >> Thanks. T
> >>
> >> <html>
> >>
> >> <head>
> >> <meta http-equiv="Content-Type" content="text/html;
> >> charset=windows-1252">
> >> <meta name="GENERATOR" content="Microsoft FrontPage

> 4.0">
> >> <meta name="ProgId"

> content="FrontPage.Editor.Document">
> >> <title>Click here</title>
> >> <script>
> >>
> >> //Modeless window script- By DynamicDrive.com
> >> //for full source code and terms of use
> >> //visit http://www.dynamicdrive.com
> >>
> >> function modelesswin(url,mwidth,mheight){
> >> if (document.all&&window.print) //if ie5
> >> eval('window.showModelessDialog
> >>

> (url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialo
> >> gHeight:'+mheight+'px")')
> >> else
> >> eval('window.open
> >>

> (url,"file:///Z:/Form/Test/partnersearch.htm","width='+mwi
> >>

> dth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
> >> }
> >>
> >> modelesswin
> >> ("file:///Z:/Form/Test/partnersearch.htm",800,800)
> >>
> >> </script>
> >>
> >> </head>
> >>
> >> <body onblur="parent.close; 'return.false;'">
> >>
> >>
> >> </body>
> >>
> >> </html>
> >> >-----Original Message-----
> >> >Thanks for this. Did as instructed but parent page
> >> failed
> >> >to close. Parent page html is:
> >> >
> >> ><html>
> >> >
> >> ><head>
> >> ><meta http-equiv="Content-Type" content="text/html;
> >> >charset=windows-1252">
> >> ><meta name="GENERATOR" content="Microsoft FrontPage

> 4.0">
> >> ><meta name="ProgId"

> content="FrontPage.Editor.Document">
> >> ><title>Click here</title>
> >> ><script>
> >> >
> >> >//Modeless window script- By DynamicDrive.com
> >> >//for full source code and terms of use
> >> >//visit http://www.dynamicdrive.com
> >> >
> >> >function modelesswin(url,mwidth,mheight){
> >> >if (document.all&&window.print) //if ie5
> >> >eval('window.showModelessDialog
> >> >
> >>

> (url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialo
> >> >gHeight:'+mheight+'px")')
> >> >else
> >> >eval('window.open
> >> >
> >>

> (url,"file:///Z:/Form/Test/partnersearch.htm","width='+mwi
> >>

> >dth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
> >> >}
> >> >
> >> >modelesswin
> >> >("file:///Z:/Form/Test/partnersearch.htm",800,800)
> >> >
> >> ></script>
> >> >
> >> ></head>
> >> >
> >> ><body>
> >> >
> >> ></body>
> >> >
> >> ></html>
> >> >
> >> >
> >> >partnersearch.htm has your script in the body tag.
> >> >
> >> >Tom
> >> >
> >> >>-----Original Message-----
> >> >>Add this to the opening body tag for the page that

> you
> >> >want to close:
> >> >>
> >> >>onblur="parent.close; 'return.false;'"
> >> >>
> >> >>So that the body tag looks like this:
> >> >>
> >> >><body onblur="parent.close; 'return.false;'">
> >> >>
> >> >>Note that there is both a ' and a" at the end: '"
> >> >>
> >> >>
> >> >>--
> >> >>Steve Easton
> >> >>Microsoft MVP FrontPage
> >> >>95isalive
> >> >>This site is best viewed............
> >> >>........................with a computer
> >> >>
> >> >>"tom robertson" <(E-Mail Removed)>
> >> >wrote in message
> >> >>news:2cc7801c4699a$1a4228c0$(E-Mail Removed)...
> >> >>> I have a main page that pops up a child page. I

> would
> >> >>> like the main page to close once the child page is
> >> >open.
> >> >>> Using this.close(); at the moment but
> >> >>> a) this propmpts the user with a confirmation

> window
> >> >>> b) this operation closes both the main and the

> child
> >> >>> windows
> >> >>>
> >> >>> is ther some code, or a function in frontpage that
> >> will
> >> >>> enable me to have the main page closed once the

> child
> >> >has
> >> >>> popped up?
> >> >>>
> >> >>> thanks,
> >> >>>
> >> >>> Tom
> >> >>
> >> >>
> >> >>.
> >> >>
> >> >.
> >> >

> >
> >
> >.
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How Can I Get Outlook 2003 To Really Close Out And Not Remain Open lapelican Microsoft Outlook Discussion 1 19th Mar 2010 03:24 PM
Make Main Menu remain same size every time =?Utf-8?B?WFA=?= Microsoft Access VBA Modules 3 16th Mar 2007 03:08 PM
Word Bookmark should close after Go To and remain open after Add =?Utf-8?B?UGV0ZXJzMTk=?= Microsoft Word Document Management 1 27th Jul 2006 02:57 AM
Can i close the outlook application and my note remain? =?Utf-8?B?RS5PLg==?= Microsoft Outlook Discussion 1 19th Oct 2004 12:43 AM
Access window and ldb remain after attempted db close irashkin Microsoft Access 1 9th Sep 2003 08:42 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:55 PM.