johnckeogh
Programmer
Hi
I have written a small piece of code that works fine in ie but not in Firefox. The user can click on a text field and the .swf file in that field will be loaded using a javascript function. Any ideas as to why this isn't working in Firefox would be most appreciated. Here is the code below.
<Script Language=JavaScript>
function showSWFPreview(currSWF){
var isSelection = currSWF;
var flashObjStr = "<object type=application/x-shockwave-flash width='720' height='480' class='movie' loop=false><PARAM NAME=Movie value="+isSelection+"></object>"
document.getElementById('video_main').innerHTML = flashObjStr;
/*alert(document.getElementById('video_main').innerHTML);*/
alert(currSWF);
}
</Script>
</head>
<body>
<div id="container">
<div id="hadder_nav"></div>
<div id="hadder_cont"></div>
<div id="video_top"></div>
<div id="video_main">
</div>
<div id="lesson_sp"><input type="text" value="Seq1.swf" size="100" onclick="showSWFPreview(this.value)"></div>
Thanks
I have written a small piece of code that works fine in ie but not in Firefox. The user can click on a text field and the .swf file in that field will be loaded using a javascript function. Any ideas as to why this isn't working in Firefox would be most appreciated. Here is the code below.
<Script Language=JavaScript>
function showSWFPreview(currSWF){
var isSelection = currSWF;
var flashObjStr = "<object type=application/x-shockwave-flash width='720' height='480' class='movie' loop=false><PARAM NAME=Movie value="+isSelection+"></object>"
document.getElementById('video_main').innerHTML = flashObjStr;
/*alert(document.getElementById('video_main').innerHTML);*/
alert(currSWF);
}
</Script>
</head>
<body>
<div id="container">
<div id="hadder_nav"></div>
<div id="hadder_cont"></div>
<div id="video_top"></div>
<div id="video_main">
</div>
<div id="lesson_sp"><input type="text" value="Seq1.swf" size="100" onclick="showSWFPreview(this.value)"></div>
Thanks