Going Crazy with latest version of DHTMLX

I’ve upgraded to the latest v. and now a lot of things are broken (Certainly MY fault!)

There are no clear instructions on how to install, so I created a “DHTMLX_Latest” folder in my webroot, and inside it I have extracted the contents of “dhtmlx_std_full.zip”.
The result is and folders and dhtmlx.css, dhtmlx.js and manifest.txt files.

I’m having all sorts of problems, but one VERY indicative one is the following.

I then opened the attached VERY simple page in Chorme, Firefox and IE (v. 9.0.8) It appears to work ok in Chrome and Firefox, (i.e. you can close the Window), but when I try to close the dhtmlx window in IE, I get the following error in the IE debugger:

dhtmlx.js, line 189 character 2: Object doesn’t support this action.

the code is
obj.detachAllEvents = function(){for (var name in this){if (name.indexOf(“ev_”)==0)
delete this[name];}

putting a watch on this[name] I get:

function() {
var res = true;
for (var i = 0;i < dhx_catch.length;i++){
if (dhx_catch[i] != null){
var zr = dhx_catch[i].apply(obj, arguments);
res=res&&zr;
}
}
return res;
}

This is holding me back like crazy, as my project was ready to roll, and now I have to review half my pages!
testSampleSimp.rar (752 Bytes)

Please try to use fixed version of dhtmlx.js

As for IE - are you using it in standard or compatibility mode?
dhtmlx_hotfix_detach.zip (272 KB)

Thanks Stan!
That cures part of the problem, now I have to find out why the buttons on my forms come up with an “undefined” command, when I use the function:

ordForm.attachEvent(“onButtonClick”,function(id,cmd) {
alert(cmd);
}

This is a new version of the testSampleSimp.html

It has a simple layout, with a form on the top cell with just a button.

This does NOT work in ANY browser, comes up with “undefined”

(I AM using the fixed dhtmlx.js you sent me)
testSampleSimp.rar (966 Bytes)

OK, I’ve SOLVED It!!

The OLD way that worked with previous release was:

=============================
{type:‘button’, command:‘reset’, …

Form.attachEvent(“onButtonClick”, function(id,cmd) {
alert(cmd);
}

The NEW release of dhtmlx.js Breaks the above and works like this:

=============================
{type:‘button’, name:‘reset’, …

Form.attachEvent(“onButtonClick”, function(id) {
alert(id);
}

So, to summerise,

  1. the “command:” parameter in the form definition no longer works, the event reacts to the “name:” parameter

  2. the event is no longer function(id, cmd)
    but function(id) (i.e. it looses the second parameter)

Why did you do this? I’ve been going mad for 2 weeks!