Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Creating Windows Explorer using Javasciprt/Jscript


Message #1 by "Vijay Jadhav" <writetovijay@r...> on Sun, 3 Mar 2002 04:58:25
Hi,
Query is little big along wht an xml file..so pls. bare with me..

I have an html page with 3 frames.(just like windows 
explorer) in the upper horizontal frmae i have menus. In 
the left vertical frame i want to display the folders and 
sub-folders. ie. treeview. when i click on a particular 
folder, the files and its details should be dislayed in the 
right frame....the look and feel should be same as windows 
explorer.....For this purpose...i am not using  FileSystemObject.I am 
picking up all the information from the database and creating an xml from 
it. i have 3 tables in the database...called 
ProjectMaster/FolderMaster/FileMaster... I
 managed to create the xml successfully.....so u dont have to worry about 
the database.now that i 
want a javascript which will display my xml in treeview form and on click 
of the project(which is also of type folder) 
or folder the right frame should display the files and its 
details.. i am sending u the xml file for ur reference.... The explorer 
will be generated by parsing the xml using DOM. I am desperately in need 
of a solution.
I wont mind even if u solve this problem using HTC file.

Thanks in advance
regards
vijay
i am sending the XML file as well: If u copy & paste it in a notepad ans 
save as.xml and view in IE it will be more nderstandable...

<children parent="root"><item type="project" subfolders="1" files="5" 
id="P1" name="project01" path="/"><Item type="project" files="3" id="P4" 
name="project01.1" path="/project01/"><Item type="file" id="13" 
path="/project01/project01.1/" name="File01.dat" 
dateLastModified="7852550400" size="3" filetype="DAT File" checkout="true" 
readonly="false"/><Item type="file" id="14" path="/project01/project01.1/" 
name="File01.dxf" dateLastModified="7855142400" size="3" filetype="DXF 
File" checkout="true" readonly="false"/><Item type="file" id="15" 
path="/project01/project01.1/" name="File01.doc" 
dateLastModified="7861363200" size="3" filetype="Document" checkout="true" 
readonly="false"/></Item><Item type="folder" files="1" id="F1" 
name="empty" path="/project01/"><Item type="file" id="12" 
path="/project01/empty/" name="Debugger.xsl" dateLastModified="7855228800" 
size="2" filetype="StyleSheet" checkout="true" 
readonly="false"/></Item><Item type="file" id="1" path="/project01/" 
name="command.doc" dateLastModified="7855056000" size="1" 
filetype="Document" checkout="false" readonly="true"/><Item type="file" 
id="2" path="/project01/" name="debugger.xsl" 
dateLastModified="7855056000" size="2" filetype="StyleSheet" 
checkout="false" readonly="true"/><Item type="file" id="3" 
path="/project01/" name="dic.csv" dateLastModified="7855056000" size="3" 
filetype="CSV File" checkout="false" readonly="true"/><Item type="file" 
id="4" path="/project01/" name="ROBOX32.Dll" dateLastModified="7855056000" 
size="1024" filetype="Application Extension" checkout="true" 
readonly="false"/><Item type="file" id="5" path="/project01/" 
name="test.ppt" dateLastModified="7855056000" size="1" 
filetype="PowerPoint" checkout="true" readonly="false"/></item><item 
type="project" subfolders="1" files="5" id="P2" name="project02" 
path="/"><Item type="folder" id="F2" name="folder01.1.1" 
path="/project02/"></Item><Item type="file" id="6" path="/project02/" 
name="part1.sat" dateLastModified="7858684800" size="28" filetype="SAT 
File" checkout="true" readonly="false"/><Item type="file" id="7" 
path="/project02/" name="part2.dwg" dateLastModified="7853155200" 
size="24" filetype="Drawing" checkout="true" readonly="false"/><Item 
type="file" id="8" path="/project02/" name="pov01.pov" 
dateLastModified="7853155200" size="2" filetype="POV File" checkout="true" 
readonly="false"/><Item type="file" id="9" path="/project02/" 
name="test12.igs" dateLastModified="7853155200" size="37" filetype="IGS 
File" checkout="true" readonly="false"/><Item type="file" id="10" 
path="/project02/" name="test32.x_t" dateLastModified="7853155200" 
size="2" filetype="X_T File" checkout="true" 
readonly="false"/></item><item type="project" files="5" id="P3" 
name="project03" path="/"><Item type="file" id="16" path="/project03/" 
name="GC-02.igs" dateLastModified="7861363200" size="33" filetype="IGS 
File" checkout="true" readonly="false"/><Item type="file" id="17" 
path="/project03/" name="part1.sat" dateLastModified="7829827200" 
size="28" filetype="SAT File" checkout="true" readonly="false"/><Item 
type="file" id="18" path="/project03/" name="Part2.DWG" 
dateLastModified="7860499200" size="24" filetype="Drawing" checkout="true" 
readonly="false"/><Item type="file" id="19" path="/project03/" name="s114-
surface.log" dateLastModified="7828790400" size="12" filetype="Text 
Document" checkout="true" readonly="false"/><Item type="file" id="20" 
path="/project03/" name="Sample01.err" dateLastModified="7828790400" 
size="56" filetype="Error file" checkout="true" 
readonly="false"/></item></children>

  Return to Index