Board Logo

JS begiinerblank document
p3aul - 2/24/2004 at 03:40 AM

I downloaded and unzipped the tree menu. I opened the index file in netscape and there was the sample menu, along with the other stuff just like in the website. this is the way I learn; I change something a little and test it, then change a little more. Well, I changed the tree_iitems_js file. I put my own text in the 1st menu item, reopened index.htm. Worked fine there was my text. I found the place where the java script was located and tried a n htm of my own:

<script language="JavaScript" src="tree_items.js"></script>
<script language="JavaScript" src="tree_tpl.js"></script>
<script language="JavaScript" src="tree.js"></script>
<script language="JavaScript">

new tree (TREE_ITEMS, TREE_TPL);


when I opened this file in netscape(or IE6) I get just a blank screen! why?
the code should be correct i lifted it right out of the website. the supporting files are right there in the same directory. Is the only way this will work is with frames?
Paul Handley

p3aul - 2/24/2004 at 04:16 AM

duhhhhh! Stupid beginners!
I found my error. a supporting filename should have been in lowercase and wasn't. it was in uppercase. Why? I guess it must be referenced by tree.js was in lowercase. Igot to remember that lowercase and uppercase in JS iS DIFFERENT!
The thonking sounds you hear are me beating my head on the desk!

Back to forum: