Hi all, I am having problems with displaying flash content in an Ajax div. Normally it would be something like this (flashcontent.php) <div id="flashContent">No flash player</div> <script type="text/javascript"> var so = new SWFObject("myFlash.swf", "myFlash", "750", "300", "7", "FFFFFF"); so.write("flashContent"); </script> Code (markup): this works Now I make an ajax request <div id="content"></div> <a href="javascript:makeRequest('flashcontent.php','content')">test flashcontent in ajax div</a> Code (markup): somehow the div flashcontent isn't being replaced by the swf??? I would like to see some examples, where you have working javascript in the div's innerhtml??? tx in advance
I'm guessing this. javascript:makeRequest('flashcontent.php','[b]content[/b]') Code (markup): Should be the ID of the response object. Which looks like it'd be flashContent. <div id="[b]flashContent[/b]">No flash player</div> Code (markup): Just a guess though, since you're not posting your code...