Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Problem with Brandens' openRelative Window JavaScript.
From: Robbert - Jan
Date: Fri, 31 Mar 2000 19:43:32 +0100

I think I found it. "calcHeight" isn't closed.

----- Original Message -----
Subject: FLASH: Problem with Brandens' openRelative Window JavaScript.

>The problem is though that when I publish it I am
> told that the page has errors within the script. Is there anything obvious
> that I need to do? The script error says that there is an unterminated
> string constant ,char 56, line 11.
>
>Eventually I am going to call the script with a GetURL frame in
> Flash, if that is an option?
> Please can someone help with finding the problem.

Yes that's an option

> The code follows:
>
> <html>
> <head>
> <title>Untitled Document</title>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> </head>
> <script language="JavaScript">
> function openRelativeWindow(theURL, theName, baseWidth, baseHeight){
> aspectRatio = (baseWidth/baseHeight);
> calcWidth = (screen.width/640)*baseWidth;
> calcHeight = calcWidth / aspectRatio;
> window.open (theURL, theName, 'width='+calcWidth+',
> height='+calcHeight'); <----- next to the "t" of the word calcHeight i've added a ' so the command will be closed
> }
> </script>
> <body bgcolor="#FFFFFF">
> <a href="#" onClick="openRelativeWindow('http://www.figleaf.com', 'fig',
> 400, 200)">Click to Launch</a>
> </body>
> </html
>
> I am completely prepared for this to turn out to be my mistake, so fire
> away.
>

that's it as far as I can find it

=======================
Robbert - Jan van Velzen
Multimedia Developer
Alphenaar Multimedia Studio

http://www.alphenaar.nl
=======================


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The Worlds Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Problem with Brandens' openRelati, Shaun Brazier

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]