Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / December 2006



Tip: Looking for answers? Try searching our database.

VML / Active X Object Installl test

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Aaron Gray - 31 Dec 2006 16:40 GMT
I have been trying to work out how to detect if the VML Active X Object is
installed ?

 <head>
   <object id="VMLRender"
     classid="CLSID:10072CEC-8CC1-11D1-986E-00A0C955B42E">
   </object>
   <style>
     vml\:* { behavior: url(#VMLRender) }
   </style>
 </head>

Testing 'VMLRender' with typeof always reveal an object though whether an
Active X Object is there or not :(

Aaron
Martin Honnen - 31 Dec 2006 18:24 GMT
> I have been trying to work out how to detect if the VML Active X Object is
> installed ?
[quoted text clipped - 10 lines]
> Testing 'VMLRender' with typeof always reveal an object though whether an
> Active X Object is there or not :(

IE exposes ided elements as global variables thus with
  <object id="VMLRenderer"></object>
that object element is exposed as a global variable meaning
  typeof VMLRenderer
or
  typeof window.VMLRenderer
yields 'object'. That does not depend on whether the object has a
classid pointing to some ActiveX.

Signature

    Martin Honnen
    http://JavaScript.FAQTs.com/

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.