PullMyWeight
Programmer
I'm creating an ms Active Channel Screen Saver. My users can have a screen saver that periodically gets info from my site. but that doesn't really matter- the issue is straight forward: i need to get values from query string ("?news=abc&show=xyz"and plug them into flash embed and param tags. i'm passing values to flash via javascript because the scripting must be client sided. so no asp etc and would rather not do cookies. so..
in my screensaver.htm page i get the substring from the url.
var info = String(location.search.substring())
then plug in my "info " var wherever i need it, ex:
<SCRIPT LANGUAGE="javascript">
document.write("param name=movie value='images/marsh.swf" + info + "'" );
</script>
i put some more document.write("info" s on my page to test that i'm getting the values i should and i do - so why then doesn't the flash load properly then?
wondering if the problem was that "info" needs to be defined as a string?? var info = string(location.search.substring())?????
test it yerself:
in my screensaver.htm page i get the substring from the url.
var info = String(location.search.substring())
then plug in my "info " var wherever i need it, ex:
<SCRIPT LANGUAGE="javascript">
document.write("param name=movie value='images/marsh.swf" + info + "'" );
</script>
i put some more document.write("info" s on my page to test that i'm getting the values i should and i do - so why then doesn't the flash load properly then?
wondering if the problem was that "info" needs to be defined as a string?? var info = string(location.search.substring())?????
test it yerself: