WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 table list help..., Brian, October 14, 2004
     got it..., Brian, October 15, 2004
     a bit closer..., Brian, October 14, 2004
     Re:table list help..., Brian, October 14, 2004

Subject: table list help... From: Brian Date: October 14, 2004

wow... long time since i posted here... got rusty in the past year... sorry guys! i need some help :(... very basic and simple here ya go:

<script>
function ShowFolderList(folderspec)
{
   var fso, f, fc, s, count;
   count = 0
   fso = new ActiveXObject("Scripting.FileSystemObject");
   f = fso.GetFolder(folderspec);
   fc = new Enumerator(f.SubFolders);
   s = "<table border=1 cellpadding=0 cellspacing=0><tr>";
   for (; !fc.atEnd(); fc.moveNext())
   {
 if(count==2){s += "<td>" + fc.item() + count + "</td></tr><tr>";count = 0;}
 else{s += "<td>" + fc.item() + count + "</td>";count = count+1;}
   }
   s += "</tr></table>";
   folderList.innerHTML=(s);
}
</script>

<body onLoad="ShowFolderList('E:\\folder');">
<div id="folderList"></div>

i have a counter to see how the table is being built... right now the layout is like this

1     2      3
1     2      3
1     2      3

what i want is...

1     1       1
2     2       2
3     3       3

so i can keep them in alphabetic order going down then to the next row... not across...
any help would be greatly appreciated...

P.S. sorry about my ghetto programming methods :P




Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX