PDA

View Full Version : javascript doesn't load


IT DEPARTMENT
23-May-2007, 07:49 AM
I'm having problems understanding what files to put where and / or what
paths to put in place to fix the problem below.

In the head section:-
<script type="text/javascript" src="cooltreepro.js"></script> <script type="text/javascript" src="tree_nodes.js"></script> <script type="text/javascript" src="tree_format.js"></script>

In the body section:-

<script type="text/javascript" src="/acatalog/cooltreepro.js"
language="JavaScript">
var tree1 = new COOLjsTreePRO("tree1", TREE_NODES, TREE_FORMAT);
tree1.init();

</script>


The problem is that the javascript doesn't load, and reports a stack over
flow message:-

Example:

http://www.colourways.net/rscds/sidenav2.html

I'd appreciate any input.

acompton
23-May-2007, 08:12 AM
Haven't I already tried to help in your other thread? Please don't post the same question twice as someone may waste time trying to answer without realising what has already been said.

Alan Compton
www.greenknightgames.co.uk
Great board games and cards games you won't find in the High Street

IT DEPARTMENT
24-May-2007, 10:36 AM
Sorry Alan,

I'm new to this forum and accidently added a new topic instead of replying.

I've uploaded the new script and tried to move it on the page as suggested, but now I'm getting a message 'stack overflow 0'.

I've tried to add it into a 'div' using some script associated with 'nortree'.

Can you have a look and possibly suggest where I've gone wrong?

http://www.tartankilts.com/acatalog/rscds.html

Kind regards,
Ruth :confused:

acompton
24-May-2007, 12:33 PM
Ruth,

You have included this line twice in the <head> section and once in the <div>:
<script type="text/javascript" src="cooltreepro.js"></script>

Once is enough in the <head> section.
Alan

IT DEPARTMENT
29-May-2007, 01:32 PM
Hi Alan,

I removed the second line from the div section, but I now have the script showing on the page.

http://www.tartankilts.com/acatalog/rscds.html

Can you possibly have a look,

Thanks
Ruth

IT DEPARTMENT
29-May-2007, 02:27 PM
Hi,

Just realised I removed the div line instead of the second one in the head.

I will update page and get back to you,

Ruth

IT DEPARTMENT
29-May-2007, 03:10 PM
hi,

I've not got any error messages now, but i still can't view the menu. I'm trying to get the menu to sit where the transparent gif is.

If you could take a look:-

http://www.tartankilts.com/acatalog/rscds.html

Thanks,
Ruth

Duncan Rounding
29-May-2007, 04:02 PM
I think you should go back and check all is correctly installed with info from cooldev: http://javascript.cooldev.com/scripts/cooltree/
According to this the code must not be placed inside any containers - I think yours is inside a div.

They say 'The best place for this code is immediately before the closing </BODY> tag':
<script type="text/javascript">
var myTree = new COOLjsTree("tree1", TREE1_NODES, TREE1_FORMAT);
</script>

Then also follow the rest of the installation instructions on their site - you may be mssing more code or formatting etc.