Jump to content

Search the Community

Showing results for tags 'jwplayer'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 1 result

  1. Hi, I am trying to implement javascript in a modal window. I am using the shortcode from pagelines [pl_modal etc. This is the code i am putting in the modal window between [pl_modal (this code implements the jwplayer for audio/video html5) <div id="myElement2">Loading the player...</div> <script type="text/javascript"> jwplayer("myElement2").setup({ file: "http://www.dancemoves.nl/snatam-mul.mp3", height: 40, width: 350, autostart:true }); </script> Result: only seeing the text "Loading the player..." nothing is replaced. In the div should the player appear. Is it possible to do this? So far i implemented an iframe tag and builded the player on a separate page. But this is more direct. There is also a javascript. placed in <head> needed for working correctly. Maybe this script cannot be reached correctly from modal window? I don't know. If this solution works it also solves the youtube video problem, as long as embedding is allowed from YT. Thanks.