Reply
Insert flash with ajax.
Old 09-18-2009, 10:46 AM Insert flash with ajax.
lynxus's Avatar
Webmaster Talker

Posts: 536
Trades: 0
Hi guys,

I have a div lets say:
Code:
<div id="sessions">
</div>
I have a some ajax that fills this div with some stuff every 10 seconds.
( the data changes so the content of the div changes )

Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
<script language="javascript" type="text/javascript">
<!--
function getdata() {
  $(\'#sessions\').load(\'agetdata.php?_=\'+Math.random());
}
//-->
</script>
Code:
<?php
echo "hiya";
?>
So in this case it would fill the div with Hiya.

I want to insert some flash but it doesnt seem to be working.

IE:

Code:
<?php
echo'
<object width="1" height="1">
<param name="movie" value="Movie1.swf">
<embed src="Movie1.swf" width="1" height="1">
</embed>
</object>
';
?>
If i put that html in a normal page, the movie loads and plays.
However if i use ajax to fill the div it doesnt play or do anything.


Any ideas?
Thanks
G

Last edited by lynxus; 09-18-2009 at 10:51 AM..
lynxus is online now
Reply With Quote
View Public Profile Visit lynxus's homepage!
 
 
When You Register, These Ads Go Away!
Reply     « Reply to Insert flash with ajax.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.09646 seconds with 13 queries