Join the AMA (Ask Me Anything) with Firefox leadership team to talk about Firefox priorities in 2024. Mark your calendar! Thursday, June 13, 17:00 - 19:00 UTC.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Learn More

ActiveXObject is not defined. How do I fix?

  • 1 отговор
  • 550 имат този проблем
  • 16 изгледи
  • Последен отговор от Abhishek Raj Simon

more options

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

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

Всички отговори (1)

more options

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

Променено на от Abhishek Raj Simon