This may sound clunky, but I am stuck with this method to do what I can.
We are using the SwfObject to include a Flash file in the header of a page. The Flash file pulled in is a holder and we then pass in an individual movie value using Flashvars, or "addVariable". Here is the example code (which works fine BTW).
<script type="text/javascript"> // <![CDATA[ var so = new SWFObject("holder.swf", "holder", "989", "147", "7.0.19", ""); so.addParam("quality", "high"); so.addParam("base", "."); so.addVariable("sectname", "kids"); so.addVariable("delaysecs", "3"); so.write("swfdiv_holder"); // ]]> </script>
The problem occurs when we need to include the whole header block of HTML using another Jscript tag. The block includes the whole header of the page, where the SWFObject.js script is included and then where it is written out on a page. Here is the line of code:
So once we use Javascript to include the HTML code on a different page (using htmlwriter("")) and therefore the Jscript, the swfObject stops working. Does anyone know, can this be made to work, even if it isn't the best way to do things?!