It's not AJAX because if I do:
dogofman.htm:
Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
name="flashvideos"
width="420"
height="282"
align="middle"
id="flashvideos">
<param name="movie" value="http://yourdomain.org/funny_stuff/flash_cartoons/dogofman/dogofman.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<embed src="http://yourdomain.org/funny_stuff/flash_cartoons/dogofman/dogofman.swf"
width="420"
height="282"
align="middle"
quality="high"
bgcolor="#000000"
name="flashvideos"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer_de"
play="true" />
</object>
and dogofman_import.htm:
Code:
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
$.get('dogofman.htm', function(data){$('#target').html(data);});
});
function wipe(){
$('#target').empty();
}
function iimport(){
$.get('dogofman.htm', function(data){$('#target').html(data);});
}
</script>
</head>
<body>
<input type="button" onclick="wipe();" value="wipe"> <input type="button" onclick="iimport();" value="import">
<div id="target">
</div>
</body>
</html>
It works just fine.
It's either other code on the funny_stuff/flash_cartoons/dogofman/ index page, other code on flash_cartoons.php, or the fact that another preloader has already run on the flash_cartoons.php page. Or, maybe you just have to use the absolute path to the .swf as I did above.
I think it's the dogofman index page. But I'm just guessing. Try simplifying it like in my example.
Bookmarks