Error using IE9 with dhtmlxConnector

Hi,
I’m trying out the samples for the dhtmlxConnector under .NET and have found a problem.
My environment id VS2010 and IE9, the problem is related to IE9.

When running a sample an error is thrown in dhtmlx.js. I have isolated the error function and line. The error does not occur when using Chrome instead of IE9.

The function that fails is below. I guess the browser detection isn’t working for IE9 so it doesn’t think it is running IE, hence the error.

dtmlXMLLoaderObject.prototype.loadXML = function (filePath, postMode, postVars, rpc) {
if (this.rSeed)
filePath += ((filePath.indexOf(“?”) != -1) ? “&” : “?”) + “a_dhx_rSeed=” + (new Date()).valueOf();
this.filePath = filePath;
if ((!_isIE)&&(window.XMLHttpRequest))
this.xmlDoc = new XMLHttpRequest();
else {
if (document.implementation && document.implementation.createDocument) {
this.xmlDoc = document.implementation.createDocument(“”, “”, null);
this.xmlDoc.onload = new this.waitLoadFunction(this);
this.xmlDoc.load(filePath); <<<<<<--------- FAILS HERE
return}
else
this.xmlDoc = new ActiveXObject(“Microsoft.XMLHTTP”)
};

a) if you are using dhtmlx 2.6 or below you need to upgrade to version 3.0 ( you need at least dhtmlxcommon.js from that version, other files can be preserved from older version )

b) if you are already using version 3.0 - be sure that page is loaded by http ( not from local filesystem ) and you are using the same domain for the html file and data feed file.

I’m using Version 3.0 - I downloaded the .NET connector sample package from the dhtmlx website a couple of days ago, uncompressed it and am using all the files from there.

The error occurs when I ‘Run’ the sample code from the VS2010 IDE - but only when I use IE9, changing to Chrome and it works. I also tried running the Chrome browser (which worked) and copying the address into a seperate instance of IE9 - i.e. localhost:3463/dhtmlxGrid/01_basic_init.aspx

The result - no error (as it doesn’t throw them) but no output either - just an empty grid - so I assume the error happened but wasn’t passed on to the browser.

Doing the same, i.e. opening a new copy of Chrome and going to the localhost:3463/dhtmlxGrid/01_basic_init.aspx address works perfectly.

I have now tried this out on a live server and with various browsers.
IE9 does not work. IE8, Firefox and Chrome all work correctly.

The only connector for .NET is the Version 1.0b that I have. I am using V 3.0 of the grid.

Please try to update dhtmlxcommon.js which is used in the problematic case, with the attached one
dhtmlxcommon.zip (7.4 KB)

Problem solved - it was the file dhtmlx.js that in the .NET connector package is way out of date!

I downloaded the dhtmlx suite with all the packages and used the dhtmlx.js file from the libCompiler\exports\1310559160 directory. This is a much newer file than the one in the .NET connector package and solved the IE9 problems I was having.