473,394 Members | 1,761 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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

anfetienne
424 256MB
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
http://www.dynamicdrive.com/dynamici...jaxcontent.htm

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">
  6.  
  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>
  23.  
Apr 25 '10 #1
1 1918
acoder
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

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

Similar topics

1
by: Marcel | last post by:
Hi, I have some very strange problem on the Mac (OS-X) with the Safari browser 1.0 (v85). Some information in my form was not filled in... after I turned on debugging and checked the console it...
4
by: JesusFreak | last post by:
From: us_traveller@yahoo.com (JesusFreak) Newsgroups: microsoft.public.scripting.jscript Subject: toolbar script problem NNTP-Posting-Host: 192.92.126.136 Recently, I downloaded the following...
2
by: RootShell | last post by:
Hello First of all i know that PHP is a server side, and JavaScript is a Client side programming language, but i need to know if there is any way i can add the variable "countDownInterval" from...
13
by: Jim Carlock | last post by:
I have over a hundred pictures I would like to present. Is it practical to create and parse an array of pictures, picture paths, et al using server-side scripting to accomplish this? I...
3
by: kksandeep | last post by:
i am using this three files to uplod file. i got this file from net but i think these have some error. i am new to this field plz help the script i found is some helpful but not too that i need ...
0
forsiam
by: forsiam | last post by:
I've seen the example in http://www.thescripts.com/forum/thread694359.html but I still have problem about javascript. (I use SWFObject) My Action Script import...
1
by: KRISHNA PRAVI | last post by:
the error is "runtime error object expected" here is the code....................................................................................... <script language="javascript"...
1
by: ephemie | last post by:
Hi all, Not sure whether this is a javascript or MySql issue. Have below javascript code of embedded flash player stored in text field in MySql, with php reading it into a variable and echoing...
5
by: voidinutah | last post by:
Hello, I'm new to .NET and was trying to find a solution for having a button control do a post back then execute a javascript function. When the button is clicked a post back occurs to save...
5
by: phpmagesh | last post by:
Hi All, I have html page, in that i have some flash header. In that flash header i have sound on/off function. i implemented this in my html page. but i need some modification in this. now it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.