Cool, looks like you have it working.
Well, here's a couple notes in conclusion.
My original problem was this: when embedding a QuickTime object in IE,
if you remove the DOM object that contains the QuickTime, then try to
make the exact same DOM object with a new QuickTime, the QuickTime
Aaron,
I'm glad you found a workaround that you can live with. I'll grant
you that the QT ActiveX control is somewhat less than robust, but I
was never able to duplicate your problem. The annoying thing that
I've run into is that when you remove the QT object from the DOM in IE
the actual
Actually you don't need to go that low-level. Take a peak at the
generate method here:
http://malsup.com/jquery/media/jquery.media.js
I'm sorry, I've gone over the JS a thousand times and I'm not making
any progress. My JS just isn't that strong.
Looking over the generate method, it looks
Yes, that method or creating the element should work just fine. Can
you post a sample page? Maybe there's just a minor typo or something
causing the problem.
Mike
... and append children to that, and then append _that_ as a child to
the body to display the movie. But no matter what I do,
Yes, that method or creating the element should work just fine. Can
you post a sample page? Maybe there's just a minor typo or something
causing the problem.
Sure.
http://www.andcuriouser.com/sandbox/jqueryqt/test.html
The error:
Error: uncaught exception: [Exception... String contains
object classid=clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B
codebase=
http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0
width=320 height=256 align=middle
param name=src value=sample.mov /
param name=autoplay value=true /
embed src=sample.mov autoplay=true width=320
anything else won't work as well.
Right now, my sample code is FF-only until I can get that up and
running (since FF is better for JS debugging). After that, I'll work
on IE (using the double-object method). Apple's method works, but it
doesn't validate. Compare it to this:
object
I hit your page, and got the error you showed... I notice your object didn't
look like my objects... so I went back to where I got my info...
I do some jQuery + qt video on my dog's site.
http://jpassoc.com/junior/puppy-movies.html
validating is for html code, not for JavaScript... we can abuse
from http://developer.apple.com/internet/ieembedprep.html
anything else won't work as well.
That's only true for static content. Dynamically, you can skip the
embed tag on IE and the object tag on everything else.
Aaron, I think your script errors are probably from the closing
'/object'
Aaron,
I've found that it is somewhat unreliable to add object elements using
innerHTML. For my media plugin I resorted to using DOM methods to add
media in IE. For an example, look at the generate method at the
bottom of this file: http://malsup.com/jquery/media/jquery.media.js
Mike
On
I've found that it is somewhat unreliable to add object elements using
innerHTML. For my media plugin I resorted to using DOM methods to add
media in IE. For an example, look at the generate method at the
bottom of this file: http://malsup.com/jquery/media/jquery.media.js
Thanks for your
I assume that .html() and .append() are DOM functions, while .load()
uses innerHTML?
Sort of, but the dom manipulation methods all call clean which uses
innerHTML so you're not really escaping that limitation.
... but if you check the results:
Hi Aaron,
Actually you don't need to go that low-level. Take a peak at the
generate method here:
http://malsup.com/jquery/media/jquery.media.js
Mike
On 6/4/07, Aaron Scott [EMAIL PROTECTED] wrote:
That problem that is fixed by using straight DOM code for creating the
object and param
13 matches
Mail list logo