using javascript to load exteral page into div layer not working with swfobject

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anfetienne
    Contributor
    • Feb 2009
    • 424

    using javascript to load exteral page into div layer not working with swfobject

    Hi,

    i've used the tutorial from this site to load and external page into a div layer... it loads perfect well but it will not load the script for swfobject.

    i am using this tutorial


    page with flash script
    Code:
    <?
    $formLocation= $_GET['formLocation'];
    ?>
    <!--so.addVariable("comOrigin", "php print $userName;");-->
    <div id="innerAudDiv">
    
    <div id="flashcontent">
    This text is replaced by the Flash movie.
    </div><script type="text/javascript">
    var so = new SWFObject("audiorecorder.swf", "gallery", "220", "150", "8", "#FFFFFF");   so.addParam("quality", "high");
    	   so.addParam("wmode", "transparent"); 
    	   so.addVariable("userName", "<?php print $userName;?>");
    	   so.addVariable("userAV", "<?php print $userAV;?>");
    	   so.addVariable("firstName", "<?php print $firstName;?>");
    	   so.addVariable("lastName", "<?php print $lastName;?>");
    	   so.addVariable("commentID", "<?php print $commentID;?>");
    	   so.addVariable("formLocation", "<?php print $formLocation;?>");
    so.write("flashcontent");
    </script> 
    </noscript></div>
    <? echo $formLocation;?>
    </div>
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    It won't load a script. Either execute it (eval), dynamically include it by appending via a script element, or have it included already in the parent page.

    Comment

    Working...