Forum Moderators: open

Message Too Old, No Replies

Embed problems, IE / Firefox

DOM javascript embed

         

nspahn

6:59 pm on Dec 19, 2006 (gmt 0)

10+ Year Member



I am working on a test page for a multi-media application that will use php and javascript to display embedded videos.

I had a script that was previously used for this purpose, but it used inner-HTML. My goal is to re-write that function to be more usable.

I got the function to work, but it only worked in part. The error message said that there was an error on a line # that was blank! After some de-bugging, i narrowed down the error to the 'embed' element.

i found what appeared to be a work-around (try catch)that i implemented into the function, problem is that now that it doesn't work in Firefox and works fine in IE.

i am very frustrated and am under the impression that there is a bug i am not aware of. Any tips on how to overcome this dilema?

fransko

6:30 am on Dec 20, 2006 (gmt 0)

10+ Year Member



I am pretty new to this but i think that i came across the same issue with the embed object in the Document Object Model. I could only get a wmv file to play in IE and FireFox would only play the audio...
Does anyone else know about this?

cmarshall

2:44 am on Dec 21, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have no idea what you are doing. Can you give a bit more information?

Why won't innerHTML work? It's recommended.