This is a strange question, I think…
I am embedding a video player using a <script> plugin (from “bitsontherun”). When the page loads, a video is displayed based on the url of the script’s src:
<script type="text/javascript" src="http://content.bitsontherun.com/players/123ABC-DEF456.js"></script>
where “123ABC-DEF456” is the unique id for the video. I would like to be able to reload the script with a new video id, and the player that it creates when a link is clicked.
Does anyone have any insight on how to do this. I feel like I should be able to manipulate the DOM, but am unsure what function to use (getScript()?).
edit
I have decided to go another route, using an iframe and updating the src of the iframe with the video id in the query string.
I have decided to go another route, using an iframe and using jQuery to update the src of the iframe with the video id in the query string.