IE9 and DhtmlxTree 2.5 Pro

Hi everyone!

we are issueing a problem using tree 2.5pro and ie9. We already tried the hotfix for ie9 and it worked with our grids but the tree is still having problem loading data from xml source.

here is the code used for the tree:

<div id="loactionTree" class="treeContent"></div><!-- /locationTree -->
<script type="text/javascript">
    function init(url)
    {
        tree = new dhtmlXTreeObject('loactionTree',"100%","100%",0); 
        tree.setImagePath("/images/dhtmlxTree/");
        tree.enableCheckBoxes(true);
        tree.enableThreeStateCheckboxes(true);
        tree.enableHighlighting(true);
        tree.enableTreeImages(false); 
        tree.sortTree(0,'ASC',true);
        tree.setDataMode("xml");
        tree.loadXML(url);
    }
</script>

XML-Example:

<?xml version='1.0' encoding='UTF-8' ?>
<tree id="0">
<item text="Room" id="9_0">
<userdata name="type">location</userdata>
<item text="101" id="101_1">
<userdata name="type">room</userdata>
</item>
<item text="102" id="102_1">
<userdata name="type">room</userdata>
</item>
<item text="103" id="103_1">
<userdata name="type">room</userdata>
</item>
<item text="104" id="104_1">
<userdata name="type">room</userdata>
</item>
<item text="105" id="105_1">
<userdata name="type">room</userdata>
</item>
</item>
</tree>

Is the fix also working for 2.5? Can you provide such a fix?

Thank you in advantage

vidj

Hi,

try to use attached dhtmlxcommon.js instead of the original. Hope it’ll solve the problem
dhtmlxcommon.zip (6.76 KB)

Hi!

Thank you for your quick answer! :slight_smile: I tried the file you uploaded but the result is still the same :frowning: no tree is been shown…

Any suggestion ?

Greetz

Vi

Locally we have not reproduced the problem in IE9 with this library and 2.5 version. I’ve attached the demo (dhtmlxtree.js is from 2.5 91111 standard, however, we have tested PRO version too)
tree.zip (44.8 KB)

I am facing the same issue and when I debug the code it give me this in IE9

Object doesn’t support property or method ‘load’
dhtmlxtree_pro.js, line 18 character 226

Have you tried to use attached files?

Ok it seems that it is associated with our dhtmlxtree_pro.js file…
if i switch it with the standart dhtmlxtree.js v.2.5 build 91111 it works with this new dhtmlxcommon.js …

we have bought this package from you:
dhtmlxTree_v25_pro_91111.zip: dhtmlxTree v.2.5 Professional edition build 91111

seems to be the same version though…

would be nice if you can provide some help

thx in adv.

vidj

dhtmlxtree_pro.js is the file that contains all tree libraries. Try to include separate files from dhtmlxTree/codebase folder and the new dhtmlxcommon.js. If the problem is not solved, please create the ticket at the Members’ Support and provide the complete demo.

Ok… we have figured out that the problem is caused by the doctype of the document…

we are useing the following doctype:

you have provided:

combined with the dhtmlxtree_pro.js file our doctype will not show the tree… using standard dhtmlxtree.js works fine though…

would be nice if you could provide a fix for this issue.

greetz

vidj

Here is a demo:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Initialization from xml</title>
	<link rel="STYLESHEET" type="text/css" href="codebase/dhtmlxtree.css" />
	<script  src="codebase/dhtmlxcommon.js"></script>
	<script  src="codebase/dhtmlxtree_pro.js"></script>	
</head>
<body>	
<div id="loactionTree" style="width:300px;height:300px"></div><!-- /locationTree -->
<script type="text/javascript">
        tree = new dhtmlXTreeObject('loactionTree',"100%","100%",0);
        tree.setImagePath("codebase/imgs/csh_vista/");
        tree.enableCheckBoxes(true);
        tree.enableThreeStateCheckboxes(true);
        tree.enableHighlighting(true);
        tree.enableTreeImages(false);
        tree.sortTree(0,'ASC',true);
        tree.setDataMode("xml");
        tree.loadXML("tree.xml",function(){});
</script>

</body>
</html>

as posted before this issue happens only on ie9 with the dhtmlxtree_pro.js file. using dhtmlxtree.js is working w/ probs.

hope this could be a little help 2 u

greetz

vidj

You may generate the new dhtmlx.js using libCompliler that could be found in the Suite package. You need to replace libCompiler/dhtmlxcommon.js with the new one.

If you do not have PRO Suite 2.5, you may download the latest one replace all Tree and Menu libraries in Suite with libraries from your Tree package.

If the problem is not solved, please create the ticket at Members’ Support

I faced same problem with ie9 for loading tree and grid component. I download fix (dhtmlxcommon.js) attached here and replay my dhtmlxcommon.js from tree and grid component now it is working fine. Is is ok? or it might create any other problems?

I can suggest you to update you your version of dhtmlxTree till 3.0