Flasher Archive

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


Subject: Re: FLASH: Object/Embed Syntax For passing values?
From: Jason Nugent
Date: Fri, 21 Aug 1998 02:32:00 +0100


Hi Kelly,

You should be able to do the same thing with IE - just do a
second document.write() where you have write the param statement.

<SCRIPT language="JavaScript"><!--

var param = eval('<PARAM NAME="' + movieName + '" VALUE="' + myVar + '">');
document.write(param);

// -->
</SCRIPT>

Which should do two substitutions, one for the name (the variable
movieName will be substituted), and then again with myVar for the VALUE
attribute. IE recognizes the language of "JavaScript" (it is basically
equivalent to JScript, IE's scripting language). Stick with JavaScript,
though, since 1.3 is now darn close to the ECMA specification.

hth,

Jason

On Thu, 20 Aug 1998, Kelly R. Kerr wrote:

> Jason,
>
> I got that to work in Netscape 4.0, but the problem I am having now is trying
> to get IE 4.0 to recognize a variable in place of the movie name in the
>
> <PARAM NAME=movie VALUE= myvar>
>
> statement. I have tried VALUE="test.swt"+myvar> and very combination I can
> think of and nothing. What am I missing? I know it is something
> simple.......
>
> Thanks for your help and any thoughts.
>

---------------------
Jason Nugent, BSc(Hons)
ap958atchebucto [dot] ns [dot] ca "This is who we are."
jasonatirt [dot] org
Certified Webmaster

Visit IRT.org - Internet Related Technologies - http://www.irt.org
Articles on all aspects of internet development, including -
CGI/Perl, CSS, JavaScript, dHTML, Java, XML, HTML

********************************************************************
The Best Place for Sport on the net! - Sportscience www.sportsci.org
********************************************************************


------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


Replies
  Re: FLASH: Object/Embed Syntax For passi, Kelly R. Kerr

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