Board Logo

Help with Perl Server Side Tree Menu
ironmann - 2/23/2005 at 03:42 PM

I downloaded the "" files and am having problems implementing them.

The perl script works correctly if you run it from the command that part is good. Inside the distribution is an index.html file that I used as a guide to call the javascripts, perl script, and also the menu itself. The problem is that index.html that comes with the distribution doesn't display the menu either. It says the menu on the right is blah, blah, blah...but there is only empty space where it is supposed to show up. I configured mine the same way and of course it does not show up either.

Below is what I did. Any help is greatly appreciated...or if there is now any documentation available please advise. One curious thing i noticed was that when it references the file it has it as a language=Javascript. I've never called a perl script like this before, so any ideas are welcome:

print $query->start_html(-title=>'$schoolName',
-script => [{ -language => 'JavaScript', -src => '../vst/javascripts/tree.js' },
{ -language => 'JavaScript', -src => '../vst/javascripts/tree_tpl.js' },
{ -language => 'JavaScript', -src => '$alias' }] );

then inside a table cell:
<script language="JavaScript">new tree (TREE_ITEMS, tree_tpl);</script>

Back to forum: