Zend & Javascript

Alesiakal

New Member
At the end of my view page I need to use a javascript that allows me to create some sort of a folder tree to navigate into, here's a snapshot :
jJ3HF.jpg
The data are formatted and rendered by this code:\[code\]d = new dTree('d');for (i=0; i<Tree.length; i++) { var nodeValues = Tree.split("|"); d.add(nodeValues[0],nodeValues[1],nodeValues[2],nodeValues[3],nodeValues[4],nodeValues[5],nodeValues[6],nodeValues[7],nodeValues[8],'','','','','');}document.write(d);\[/code\]The javascript is placed just before my \[code\]</body>\[/code\]. I manage to make it work in a random page but with Zend Framework I can't get it to work. The data is properly formatted, I checked and double checked, here's the data to the example in the snapshot:\[code\]Tree[0] = "0|-1|05260059-MOD052-00||||||1000";Tree[1] = "1|0|M01262-00|54.555|82.269|82.269|20110124|20391231|1";Tree[2] = "2|1|M01263-00|1|1|1|20080801|20391231|0";Tree[3] = "3|0|M01264-00|13.031|31.702|31.702|20110131|20391231|1";Tree[4] = "4|3|M01265-00|0.6|0.6|0|20100101|20391231|0";Tree[5] = "5|3|M01266-00|0.4|0.4|0|20100101|20391231|0";Tree[6] = "6|0|M01267-00|77.991|109.79|109.79|20110124|20391231|1";Tree[7] = "7|6|M01268-00|0.999|0.999|0|20100101|20391231|0";Tree[8] = "8|6|M01269-00|0.001|0.001|0|20100101|20391231|0";Tree[9] = "9|0|M01372-00|38.995|95.106|95.106|20110131|20391231|1";Tree[10] = "10|9|M01373-00|1|1|0|20100101|20391231|0";Tree[11] = "11|0|M01391-00|6.418|29.757|29.757|20110124|20391231|1";Tree[12] = "12|11|M01392-00|1|1|0|20100101|20391231|0";\[/code\]I can't figure out how to make it work in Zend, eager to hear some thoughts and ideas.Alex
 
Top