Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Matt Gifford on Feb 03, 2009 03:28
open dhtmlx forum
XML not populating tree checkbox value

Hi

I am using the dhtmlx tree, saving the values of the check boxes within my database.
When I go to view the page again, the checkboxes are ALL checked, even though if I view the source of the XML feeding the tree, it has the correct "checked=" values, so not all of the check boxes should be selected.

Can anyone help please?

Many thanks
Answer posted by Support on Feb 03, 2009 04:55
Please check that data which loaded is really correct one, you can use debug version of dhtmlxcommon.js to double-check that loaded data contains valid attribute value.  
http://dhtmlx.com/docs/products/kb/index.shtml?cat=search&q=2545&ssr=yes&s=dhtmlxcommon

If issue still occurs for you - please provide a sample of problematic XML.
Answer posted by Matt Gifford on Feb 04, 2009 03:58
Thank you for the answer.
I changed to use the common debug file, but am getting javascript errors now:

_isIE is not defined
[Break on this error] through:function(name,rule,v,f,t){var a... (e){};if (typeof(htmlObject)!="object")

this seems to be coming from dhtmlxtree.js

How can I debug if changing to the debug script causes more errors?

Answer posted by Support on Feb 04, 2009 04:43
The dhtmlxcommon.js and dhtmlxcommon_debug.js provides the same functionality, just be sure that it is included before other js files
Sample attached
Attachments (1)
Answer posted by Matt Gifford on Feb 04, 2009 07:33
Thank you

I emulated the order of the scripts just to be sure, pointing to the correct paths:

<link rel="STYLESHEET" type="text/css" href="../js/dhtmlxTree/dhtmlxtree.css">
<script src="../js/dhtmlxTree/dhtmlxcommon_debug.js"></script>
<script src="../js/dhtmlxTree/dhtmlxtree.js"></script>
<script src="../js/dhtmlxTree/ext/dhtmlxtree_start.js"></script>

but still getting the same error.
Answer posted by Support on Feb 04, 2009 07:42
>>_isIE is not defined
The only reason for such error - dhtmlxcommon.js ( or its debug version ) was not loaded in page , be sure that path used in your case is really correct.