Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Client Side XSL/JavaScript & MediaPlayer Issue [Thread Next] Re: Client Side XSL/JavaScript & MediaPlayer IssueTo: NULL Date: 3/14/2009 2:07:00 PM BradR wrote:
> We have an app that's all client-side xslt & Java Script. For some
> unknown reason in IE7 (haven't tested in older versions) when I have
>
> [code]
> . . .
>
> myvar='<object id="MediaPlayer1" classid="CLSID:22D6f312-
> B0F6-11D0-94AB-0080C74C7E95" standby="{$standby}" type="application/x-
> oleobject" height="{$finalPlayerHeight}" width="{$finalPlayerWidth}">
> <param name="FileName" value="myfile"><param name="ShowControls"
> value="true"><param name="AutoRewind" value="True"><param
> name="AutoStart" value="true"></object>';
>
> mydoc.innerhtml = myvar;
Is that supposed to be JavaScript? What is mydoc? A document object? The
HTML document object does not have a a property named innerhtml, nor
does it have a property named innerHTML.
> mydoc.innerhtml ends up with just:
>
> [code]
> <object id="MediaPlayer1" classid="CLSID:22D6f312-
> B0F6-11D0-94AB-0080C74C7E95" standby="{$standby}" type="application/x-
> oleobject" height="{$finalPlayerHeight}" width="{$finalPlayerWidth}"></
> object>";
> [/code]
>
> the PARAM tags are all missing.
I am not sure how your problem relates to XSLT, the topic of this
newsgroup but you at least need to explain what mydoc is and why you are
trying to set a property named 'innerhtml' while the IE HTML DOM only
has a property named 'innerHTML' on element objects.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
