OK, I'm a novice in JS but have lots of coding experience. I am
trying to accomplish something that would seem somewhat simple - BUT
IT'S NOT.
I have a basic window that calls another window with window.open and
passes in 1 value using a querystring i.e.,
www.myhome.com/mypage?video=BAK-Extension
Now when the window opens, I can capture the passed value in a JS
function. But if I want to use that in the body of the HTML in a
string substitution, how do I do that?
Here is my example:
<body onload="MM_Chec kFlashVersion(' 7,0,0,0','Conte nt on this page
requires a newer version of Macromedia Flash Player. Do you want to
download it now?')";>
<object classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=7,0,0,0"
width="400" height="300" id="FLVPlayer" >
<param name="movie" value="FLVPlaye r_Progressive.s wf" />
<param name="salign" value="lt" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="FlashVars "
value="&MM_Comp onentVersion=1& skinName=Corona _Skin_3&streamN ame=segments/BAK-BandBackExtensi on&autoPlay=tru e&autoRewind=fa lse"
/>
<embed src="FLVPlayer_ Progressive.swf " width="400" height="300"
flashvars="&MM_ ComponentVersio n=1&skinName=Co rona_Skin_3&str eamName=segment s/BAK-BandBackExtensi on&autoPlay=tru e&autoRewind=fa lse"
quality="high" scale="noscale" name="FLVPlayer " salign="LT"
type="applicati on/x-shockwave-flash"
pluginspage="ht tp://www.macromedia. com/go/getflashplayer" />
</object>
</body>
In the object definition I want to substitute the occurences of
BAK-BandBackExtensi on with whatever is passed in as a variable. I
think that %var% notation will work but I don't know how to get the
variable that is passed in scoped to the level that I can see it in
the body of my HTML - or maybe that is completely backwards or non-OO
thinking.
I'm just looking for ANY solution, elegant or otherwise.
This app just takes input from a window and plays a specific Flash
video based on a thumbnail that was clicked.
Thanks so much in advance. i know there is a guru out there who can
do this while sleeping.
Skip