Link to home
Start Free TrialLog in
Avatar of juststeve
juststeve

asked on

Dynamic FlashVars and Foxfire

I using Javascript to parseout values to send via FlashVars so I'm using the 'document.write' method to construct the Flash related stuff. It works fine for ie but Foxfire chokes on opening. Clearly it has to do with escaping the quotes properly...can someone point me to a working sample?

<script language="JavaScript">
      document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" WIDTH=100% HEIGHT=100% name=\"campus\" id=\"campus\" >");
      document.write("<param name=movie value=campus4.swf>");
      document.write("<PARAM NAME=FlashVars VALUE=" + parseData() + ">");
      document.write("<param name=menu value=false>");
      document.write("<param name=quality value=high>");
      document.write("<embed src=campus4.swf\" menu=false FlashVars=" + parseData() + " name=\"campus\" swliveconnect=true  quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" width=\"100%\" height=\"100%\" type=\"application/x-shockwave-flash >");
            document.write("</embed></object>");

ASKER CERTIFIED SOLUTION
Avatar of Aneesh Chopra
Aneesh Chopra
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial