Flasher Archive

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


Subject: FLASH: Problem with Brandens' openRelative Window JavaScript.
From: Shaun Brazier
Date: Thu, 30 Mar 2000 16:51:02 +0100


Hi,

I am trying to use this very handy script that Branden Hall posted to the
list several weeks ago. 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.

I know nothing about JavaScript and wouldn't know where to begin in de
bugging. 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.

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);
}
</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.

All help is much appreciated

Thanx again
Shaun Brazier

P.S In no way is this meant to offend Mr Hall in anyway, I just need a
little help with implementing the script.:~)
The script is much appreciated Branden.


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s 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
  Re: FLASH: Problem with Brandens' openRe, Robbert - Jan
  Re: FLASH: Problem with Brandens' openRe, Cheri Harder

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