datajs not compatible with Windows 8 Metro Apps?

May 30, 2012 at 3:04 PM

Hi,

I tried to use datajs 1.0.2 and 1.0.3 for developing OData access in a Win 8 Metro app. Unfortunately, it is not working on the IE10 inside Metro (HTML5/JS App).

Seems that the check

if (window.ActiveXObject) {

}

returns true, while creating a new instance with new ActiveXObject() runs into an exception because ActiveX objects are not allowed inside Metro apps.

Could you check this behavior? I had to quickfix this in your release, in function createDomParser (line 1424 on v1.0.3), to use the window.DOMParser() before checking the window.ActiveXObject.

Cheers,

Thomas

May 30, 2012 at 7:20 PM

Hi Thomas,

   Thank you for bringing this to our attention. We will look into this.  Definitlely we want datajs to work in IE10.

Regards,

Alex Trigo.

Jun 13, 2012 at 8:22 PM
Edited Jun 13, 2012 at 8:23 PM

Hi,

I found a solution for the problem if you want to build an metro app. In the createDomParser method you have the following check:

if (window.ActiveXObject){

}

 If you add the following check, the activeXObjects will be ignored in metro apps

if (window.ActiveXObject && typeof Windows === "undefined") {

}

I hope this helps you at for now, It did for me.

Greetings

Kristof