Click to See Complete Forum and Search --> : Javascript directory tree problem


cruella369
01-28-2003, 12:20 PM
I am creating a JavaScript directory tree for a client. This page is made with frames (I know, I know, I don't like frames either, but what the client wants, the client gets). Here is the problem:

The code is supposed to create a directory tree view. The subdirectories indent below the parent directories. The issue is: the indent is so much that the view in the form generates the scroll bar at the bottom (said clinet, who is always right, doesn't want to have to scroll left to right).

The javascript file is attached as it's too long for this post(excuse the coding, still in the learning stages):

khalidali63
01-28-2003, 12:39 PM
To begin with your code should be like this
instead of many document.write commands;
create a single string with all the html in it and then at one point do a
document.write(string);

cheers