Question
Calling javascript function to open SWF
When the Captivate presentation ends, I'm trying to open
another SWF in the same browser window.
I have put the following code in the HTML document:
<script type="text/javascript">
<!--
function changeMovie(filename)
{
document.getElementById('Captivate1').movie=filename;
alert(document.getElementById('Captivate1').movie);
}
//-->
</script>
I am able to call the function from the Captivate file successfully because the alert window pops up with the name of the movie. I just can't get it to play. Can anyone help me on this?
Not to be rude or anything, but I should note that:
1) this is not my idea--it is my boss' idea, and any attempts to tell me that this is something not worth doing will unfortunately fall, not on deaf ears, but on ears connected to hands that have no freedom to choose how this project is completed. This is my master's bidding, and I must do what he says.
2) I know very little JavaScript. This code was given to me by another guy on the project. So if you have advice for changing the code, please be as specific as possible.
I would be very grateful for any help that you can offer.
I have put the following code in the HTML document:
<script type="text/javascript">
<!--
function changeMovie(filename)
{
document.getElementById('Captivate1').movie=filename;
alert(document.getElementById('Captivate1').movie);
}
//-->
</script>
I am able to call the function from the Captivate file successfully because the alert window pops up with the name of the movie. I just can't get it to play. Can anyone help me on this?
Not to be rude or anything, but I should note that:
1) this is not my idea--it is my boss' idea, and any attempts to tell me that this is something not worth doing will unfortunately fall, not on deaf ears, but on ears connected to hands that have no freedom to choose how this project is completed. This is my master's bidding, and I must do what he says.
2) I know very little JavaScript. This code was given to me by another guy on the project. So if you have advice for changing the code, please be as specific as possible.
I would be very grateful for any help that you can offer.