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_CheckFlashVersion('7,0,0,0','Content 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.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
width="400" height="300" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="salign" value="lt" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="FlashVars"
value="&MM_ComponentVersion=1&skinName=Corona_Skin _3&streamName=segments/BAK-BandBackExtension&autoPlay=true&autoRewind=false"
/>
<embed src="FLVPlayer_Progressive.swf" width="400" height="300"
flashvars="&MM_ComponentVersion=1&skinName=Corona_ Skin_3&streamName=segments/BAK-BandBackExtension&autoPlay=true&autoRewind=false"
quality="high" scale="noscale" name="FLVPlayer" salign="LT"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</body>
In the object definition I want to substitute the occurences of
BAK-BandBackExtension 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