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: got it... From: Brian Date: October 15, 2004

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);

 var fcs = new Array();
 var count = 0;

 while (!fc.atEnd())
 {
  fcs[count] = fc.item().name;
  count = count+1;
  fc.moveNext();
 }

var fcount = 0
s = "<table STYLE='table-layout:fixed;' border=0 cellpadding=0 cellspacing=0>";

for(var i = 0; i<10; i++)
{
s += "<tr>";
for(var ii = 0; ii<fcs.length/10; ii++)
{
s += "<td width=230 style='font-family:arial; font-size: 8pt;'>"+fcs[i+fcount]+"</td>";
fcount = fcount+10;
}
s += "</tr>";
fcount = 0;
}

s += "</tr></table>";
folderList.innerHTML=(s);

}

prolly not the best method... but it works...




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