According to IE, there is an error on this line that is generated by dtree:
d.add(0,-1,’Learning Center Topics’);d.add( 1 , 0 , ’WyndRyder’s Learning Center’, ’index.php?id=1’);
IE says:
Line: 151 (the above pasted line)
Char: 64
Error: Expected ’)’
Code: 0
URL:
http://learning-center.wyndryder.com/modx/
According to Firefox, there is no error but there is also no menu. The script output in to the rendered page:
<script type="text/javascript">
<!--
d = new dTree(’d’);
d.add(0,-1,’Learning Center Topics’);d.add( 1 , 0 , ’WyndRyder’s Learning Center’, ’index.php?id=1’);
d.add( 6 , 0 , ’Budget Expert’, ’index.php?id=6’);
d.add( 2 , 0 , ’Dolphin’, ’index.php?id=2’);
d.add( 3 , 0 , ’MODx’, ’index.php?id=3’);
d.add( 4 , 0 , ’SoundTrek’, ’index.php?id=4’);
d.add( 5 , 0 , ’SWiSHmax’, ’index.php?id=5’);
d.add( 7 , 0 , ’About’, ’index.php?id=7’);
d.add( 8 , 6 , ’Budget Expert Documentation’, ’index.php?id=8’);
d.add( 9 , 2 , ’Dolphin Tips & Tricks’, ’index.php?id=9’);
d.add( 10 , 3 , ’MODx Tips & Tricks’, ’index.php?id=10’);
d.add( 11 , 4 , ’SoundTrek Video Tutorials’, ’index.php?id=11’);
d.add( 12 , 5 , ’SWiSHmax Previewer’, ’index.php?id=12’);
d.add( 13 , 5 , ’SWiSHmax FLV Players’, ’index.php?id=13’);
d.add( 14 , 5 , ’SWiSHmax Tips & Tricks’, ’index.php?id=14’);
document.write(d);
//-->
</script>
.....looks correct, but why is it not rendering on to the web page?
When I remove the line altogether I get a different error:
Parse error: syntax error, unexpected T_STRING in /home/rsmaui/public_html/learning-center/modx/manager/includes/document.parser.class.inc.php(770) : eval()’d code on line 7
Rob->