Announcement

Collapse
No announcement yet.

javascript doesn't load

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    javascript doesn't load

    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.

    #2
    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

    Comment


      #3
      Stack Overflow 0

      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

      Comment


        #4
        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

        Comment


          #5
          Removed extra line still have problems

          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

          Comment


            #6
            just realised my error

            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

            Comment


              #7
              no error message but cant see menu

              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
              Last edited by IT DEPARTMENT; 29-May-2007, 03:14 PM. Reason: spelling

              Comment


                #8
                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.

                Comment

                Working...
                X