X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

ActiveXObject is not defined. How do I fix?

Posted

This code function getFileDate(Str){ var oas = new ActiveXObject("Scripting.FileSystemObject"); var fileobj = oas.GetFile("LR0001.jpg"); return fileobj.DateCreated; }

Additional System Details

This happened

Not sure how often

This started when...

I wrote code

Installed Plug-ins

  • Garmin Communicator Plug-In 2.9.2.0
  • Office Plugin for Netscape Navigator
  • np-mswmp
  • Image Control Plugin for viewing images on Ancestry.com. Version 1.0.0.1
  • 1.9.0009.1
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • npdivxplayerplugin
  • Winamp Application Detector
  • Default Plug-in
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • Adobe PDF Plug-In For Firefox and Netscape "9.4.1"
  • Shockwave Flash 10.1 r102
  • Provides additional functionality on Facebook. See our web site for details.
  • DivX Web Player version 2.0.2.40
  • GEPlugin
  • Next Generation Java Plug-in 1.6.0_22 for Mozilla browsers
  • Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
  • 6.0.12.1483
  • RealPlayer(tm) LiveConnect-Enabled Plug-In
  • RealJukebox Netscape Plugin
  • Google Update

Application

  • User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)

More Information

The question is how do I define ActiveXObject?

Abhishek Raj Simon 0 solutions 1 answers

The ActiveXObject object is used to create instances of OLE Automation objects in Internet Explorer on Windows operating systems.

So it only supports Internet Explorer on Windows. No other browser support is available till date for ActiveXObject.

For cross browser solution, use object element instead. Read more about it here

Modified by Abhishek Raj Simon