From: Andrew Poulos on
If I dynamically add a quicktime movie to a page using innerHTML the
movie appears/plays but the movie's controller bar doesn't in IE.

var movie = "<object " +
"classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' " +
"codebase='http://www.apple.com/qtactivex/qtplugin.cab' " +
"style='position:absolute; left:106px; top:44px; width:390px;
height:390px;'>" +
"<param name='src' value='sample.mov'>" +
"<param name='autoplay' value='false'>" +
"<param name='loop' value='false'>" +
"<param name='controller' value='true'>" +
"<param name='scale' value='ToFit'>" +
"<embed " +
"src='sample.mov' " +
"style='position:absolute; left:0px; top:0px; width:390px;
height:390px;' " +
"type='video/quicktime' " +
"pluginspace='http://www.apple.com/quicktime/download/' " +
"autoplay='false' " +
"loop='false' " +
"controller='true' " +
"scale='ToFit'>" +
"</object>"

document.getElementById("main").innerHTML = "movie";

The controller bar appears in Firefox, Chrome, Opera...

I'm at a loss. Is it a bug in IE, with using innerHTML, the OBJECT
element...?

Andrew Poulos
From: Thomas 'PointedEars' Lahn on
Andrew Poulos wrote:

> If I dynamically add a quicktime movie to a page using innerHTML the
> movie appears/plays but the movie's controller bar doesn't in IE.
>
> var movie = "<object " +
> "classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' " +
> "codebase='http://www.apple.com/qtactivex/qtplugin.cab' " +
> "style='position:absolute; left:106px; top:44px; width:390px;
> height:390px;'>" +
> "<param name='src' value='sample.mov'>" +
> "<param name='autoplay' value='false'>" +
> "<param name='loop' value='false'>" +
> "<param name='controller' value='true'>" +
> "<param name='scale' value='ToFit'>" +
> "<embed " +
> "src='sample.mov' " +
> "style='position:absolute; left:0px; top:0px; width:390px;
> height:390px;' " +
> "type='video/quicktime' " +
> "pluginspace='http://www.apple.com/quicktime/download/' " +
> "autoplay='false' " +
> "loop='false' " +
> "controller='true' " +
> "scale='ToFit'>" +
> "</object>"
>
> document.getElementById("main").innerHTML = "movie";
^ ^
> The controller bar appears in Firefox, Chrome, Opera..

Very unlikely.

> I'm at a loss. Is it a bug in IE, with using innerHTML, the OBJECT
> element...?

None of the above.


PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
From: nick on
On Apr 22, 8:17 pm, Thomas 'PointedEars' Lahn <PointedE...(a)web.de>
wrote:
> Andrew Poulos wrote:
> > document.getElementById("main").innerHTML = "movie";
>
>                                               ^     ^

PE wins.
From: nick on
On Apr 22, 8:07 pm, Andrew Poulos <ap_p...(a)hotmail.com> wrote:
> If I dynamically add a quicktime movie to a page using innerHTML the
> movie appears/plays but the movie's controller bar doesn't in IE.

No idea really, but here's a few shots in the dark.

- The <embed> tag never terminates, see if changing that helps

- Try inserting the elements using the createNode / appendChild
approach

- Try letting IE default to the WMP plugin (or use it explicitly) and
see if it shows the controller.
From: David Mark on
Andrew Poulos wrote:
> If I dynamically add a quicktime movie to a page using innerHTML the
> movie appears/plays but the movie's controller bar doesn't in IE.
>
> var movie = "<object " +
> "classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' " +
> "codebase='http://www.apple.com/qtactivex/qtplugin.cab' " +
> "style='position:absolute; left:106px; top:44px; width:390px;
> height:390px;'>" +
> "<param name='src' value='sample.mov'>" +
> "<param name='autoplay' value='false'>" +
> "<param name='loop' value='false'>" +
> "<param name='controller' value='true'>" +
> "<param name='scale' value='ToFit'>" +
> "<embed " +
> "src='sample.mov' " +
> "style='position:absolute; left:0px; top:0px; width:390px;
> height:390px;' " +
> "type='video/quicktime' " +
> "pluginspace='http://www.apple.com/quicktime/download/' " +
> "autoplay='false' " +
> "loop='false' " +
> "controller='true' " +
> "scale='ToFit'>" +
> "</object>"
>
> document.getElementById("main").innerHTML = "movie";

I'll assume the quotes are a typo.

>
> The controller bar appears in Firefox, Chrome, Opera...
>
> I'm at a loss. Is it a bug in IE, with using innerHTML, the OBJECT
> element...?

Why don't you remove innerHTML from the equation and see?