I have this example code, but i believe when i call the ajax function that is not loaded. How can i load an external script as below? Thanks
<?php if (is_ajax_request()): ?>
<div id="movie5" class="movie"></div>
<script>
var swf = swfobject.embedSWF("http://vimeo.com/moogaloop.swf?clip_id=35014154&server=vimeo.com&show_title=0&show_byline=0&show_portrait=0&color=ffffff&fullscreen=1&autoplay=0&loop=0", "movie5", "500", "281", "9.0.0","expressInstall.swf", { api:1, player_id:"movie5" }, { allowfullscreen:true, allowscriptaccess:'always' });
</script>
Eventually i came up with using this:
In the main page I have a element which i then populate and replace with the iframe
Main page:
Content page to be loaded: