Jens
Thu Apr 21 01:16:04 CDT 2005
This is a multi-part message in MIME format.
------=_NextPart_000_0013_01C5464A.5CB076C0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
I would not advice using either. Opening a popup onload will fail in
most browsers because of popup blockers including IE SP2.
Trying to force the window to fill the screen will also fail in some
browsers and in a large proportion of the rest, the users will probably
get mad at you for messing with their preferred browser windowsize and
leave your site.
Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
> -----Original Message-----
> From: cookoonest [mailto:cookoonest@hotmail.com]
> Posted At: 21. april 2005 03:43
> Posted To: microsoft.public.frontpage.programming
> Conversation: Error in "Preview" only
> Subject: Error in "Preview" only
>
>
> When I use the below script to ensure that new windows open
> maximized I get an error in Preview. Running in browser
> locally and on the server works fine. Also, if I click "Yes"
> or "No" on the error box the error goes away and it
> continues on fine after that.
>
> The reason I am using this is that I have a small popup
> window that is onloaded from the index page when entering
> the site. When I link to another page from the menu bar
> (after closing the popup) it comes up the same size as the
> popup. The code below fixes this but causes a javascript
> error in "preview" when I'm using Frontpage (2003).
>
> The URL on the error message is "file://C:\Documents and
> Settings\My Name\Local Settings\Temporary Internet
> Files\FrontPageTempDir\pvw1.htm" and it says "Access is
> denied" Code 0.
>
> Maybe there is some way to return the screen size to
> maximized after the popup is closed???
>
> Any ideas would be appreciated.
>
> Larry
>
> Javascript code ********************************
>
> <script language="JavaScript1.2">
> <!--
>
> /***********************************************
> * Auto Maximize Window Script- C Dynamic Drive (www.dynamicdrive.com)
> * This notice must stay intact for use
> * Visit
http://www.dynamicdrive.com/ for this script and 100's more.
> ***********************************************/
>
> top.window.moveTo(0,0);
> if (document.all) {
> top.window.resizeTo(screen.availWidth,screen.availHeight);
> }
> else if (document.layers||document.getElementById) { if
> (top.window.outerHeight<screen.availHeight||top.window.outerWi
> dth<screen.availWidth){
> top.window.outerHeight = screen.availHeight;
> top.window.outerWidth = screen.availWidth; } } //--> </script>
>
>
------=_NextPart_000_0013_01C5464A.5CB076C0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7036.0">
<TITLE>Re: Error in "Preview" only</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=3D2>I would not advice using either. Opening a popup =
onload will fail in most browsers because of popup blockers including IE =
SP2.</FONT></P>
<P><FONT SIZE=3D2>Trying to force the window to fill the screen will =
also fail in some browsers and in a large proportion of the rest, the =
users will probably get mad at you for messing with their preferred =
browser windowsize and leave your site.</FONT></P>
<P><FONT SIZE=3D2>Regards Jens Peter Karlsen. Microsoft MVP - =
Frontpage.</FONT>
</P>
<P><FONT SIZE=3D2>> -----Original Message-----</FONT>
<BR><FONT SIZE=3D2>> From: cookoonest [<A =
HREF=3D"mailto:cookoonest@hotmail.com">mailto:cookoonest@hotmail.com</A>]=
</FONT>
<BR><FONT SIZE=3D2>> Posted At: 21. april 2005 03:43</FONT>
<BR><FONT SIZE=3D2>> Posted To: =
microsoft.public.frontpage.programming</FONT>
<BR><FONT SIZE=3D2>> Conversation: Error in "Preview" =
only</FONT>
<BR><FONT SIZE=3D2>> Subject: Error in "Preview" =
only</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> When I use the below script to ensure that new =
windows open </FONT>
<BR><FONT SIZE=3D2>> maximized I get an error in Preview. Running in =
browser </FONT>
<BR><FONT SIZE=3D2>> locally and on the server works fine. Also, if I =
click "Yes" </FONT>
<BR><FONT SIZE=3D2>> or "No" on the error box the =
error goes away and it </FONT>
<BR><FONT SIZE=3D2>> continues on fine after that.</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> The reason I am using this is that I have a =
small popup </FONT>
<BR><FONT SIZE=3D2>> window that is onloaded from the index page =
when entering </FONT>
<BR><FONT SIZE=3D2>> the site. When I link to another page from the =
menu bar </FONT>
<BR><FONT SIZE=3D2>> (after closing the popup) it comes up the same =
size as the </FONT>
<BR><FONT SIZE=3D2>> popup. The code below fixes this but causes a =
javascript </FONT>
<BR><FONT SIZE=3D2>> error in "preview" when I'm using =
Frontpage (2003).</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> The URL on the error message is "<A =
HREF=3D"file://C:\Documents">file://C:\Documents</A> and </FONT>
<BR><FONT SIZE=3D2>> Settings\My Name\Local Settings\Temporary =
Internet </FONT>
<BR><FONT SIZE=3D2>> Files\FrontPageTempDir\pvw1.htm" and it =
says "Access is </FONT>
<BR><FONT SIZE=3D2>> denied" Code 0.</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> Maybe there is some way to return the screen =
size to </FONT>
<BR><FONT SIZE=3D2>> maximized after the popup is closed???</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> Any ideas would be appreciated.</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> Larry</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> Javascript code =
********************************</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> <script =
language=3D"JavaScript1.2"></FONT>
<BR><FONT SIZE=3D2>> <!--</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> =
/***********************************************</FONT>
<BR><FONT SIZE=3D2>> * Auto Maximize Window Script- © Dynamic =
Drive (www.dynamicdrive.com)</FONT>
<BR><FONT SIZE=3D2>> * This notice must stay intact for use</FONT>
<BR><FONT SIZE=3D2>> * Visit <A =
HREF=3D"
http://www.dynamicdrive.com/">http://www.dynamicdrive.com/</A> =
for this script and 100's more.</FONT>
<BR><FONT SIZE=3D2>> =
***********************************************/</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> top.window.moveTo(0,0);</FONT>
<BR><FONT SIZE=3D2>> if (document.all) {</FONT>
<BR><FONT SIZE=3D2>> =
top.window.resizeTo(screen.availWidth,screen.availHeight);</FONT>
<BR><FONT SIZE=3D2>> }</FONT>
<BR><FONT SIZE=3D2>> else if =
(document.layers||document.getElementById) { if </FONT>
<BR><FONT SIZE=3D2>> =
(top.window.outerHeight<screen.availHeight||top.window.outerWi</FONT>
<BR><FONT SIZE=3D2>> dth<screen.availWidth){</FONT>
<BR><FONT SIZE=3D2>> top.window.outerHeight =3D screen.availHeight; =
</FONT>
<BR><FONT SIZE=3D2>> top.window.outerWidth =3D screen.availWidth; } } =
//--> </script></FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> </FONT>
</P>
</BODY>
</HTML>
------=_NextPart_000_0013_01C5464A.5CB076C0--