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..
|