![](https://secure.gravatar.com/avatar/183c2191f70799d139a81844527b1826?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
Playlist not loading with Ajax
Hi I have a playlist in jwplatform,
i am including playlists in my website with dynamic video keys with ajax but in the popup the player is not displaying.
code :
<div class="modal-body" >
<script type="text/javascript" src="http://hls.prendismo.com/players/<?php echo $key; ?>-L7Ric8zj.js"></script>
</div>
in above code $key will come dynamically with playlist key.
example : like this <script type="text/javascript" src="http://hls.prendismo.com/players/AkR034qz-L7Ric8zj.js"></script>
but when i append this to my jquery bootstrap model popup with ajax the player is not loading
code :
$.ajax({
type: 'get',
async:false,
url: '<?php echo get_template_directory_uri();?>/templates/PlayAllVideosinPlaylist.php',
data: 'key='+key,
success: function(data){
$("#post_PlayAllVideosinCase").html(data);
}
})
am appending resutl to the post_PlayAllVideosinCase div,
popup is coming but player is not coming
pls suggest me