469,275 Members | 1,288 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,275 developers. It's quick & easy.

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

424 256MB

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
Expand|Select|Wrap|Line Numbers
  1. <?
  2. $formLocation= $_GET['formLocation'];
  3. ?>
  4. <!--so.addVariable("comOrigin", "php print $userName;");-->
  5. <div id="innerAudDiv">
  7. <div id="flashcontent">
  8. This text is replaced by the Flash movie.
  9. </div><script type="text/javascript">
  10. var so = new SWFObject("audiorecorder.swf", "gallery", "220", "150", "8", "#FFFFFF");   so.addParam("quality", "high");
  11.        so.addParam("wmode", "transparent"); 
  12.        so.addVariable("userName", "<?php print $userName;?>");
  13.        so.addVariable("userAV", "<?php print $userAV;?>");
  14.        so.addVariable("firstName", "<?php print $firstName;?>");
  15.        so.addVariable("lastName", "<?php print $lastName;?>");
  16.        so.addVariable("commentID", "<?php print $commentID;?>");
  17.        so.addVariable("formLocation", "<?php print $formLocation;?>");
  18. so.write("flashcontent");
  19. </script> 
  20. </noscript></div>
  21. <? echo $formLocation;?>
  22. </div>
Apr 25 '10 #1
1 1854
16,027 Expert Mod 8TB
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.
Apr 29 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Marcel | last post: by
4 posts views Thread by JesusFreak | last post: by
2 posts views Thread by RootShell | last post: by
5 posts views Thread by voidinutah | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.