supplied by Machi, or know of a simple alternative
bob
Machi wrote Mar 10 1999, 8:00 am
>>>>>>>>> >
....
Hello Harjinder!
Not sure if you had this in mind or not. This is an example of
data binding and sorting using the Tabular Data Control (tdc)
that ships with IE. Please note that this will only work with IE.
Copy each section. Save the first with any name you like, but you
must save the second section (the comma delimited list) as
"docList.tx t" because it's the source of the data and that name
is coded into the .html page.
--CUT 'N PASTE HTML--
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<!-- The following is the Tabular Data Control (tdc) that ships
with IE4.0. As such this will only work with IE4.0
-->
<OBJECT id="docList"
classid="clsid: 333C7BC4-460F-1*1D0-BC04-0080C7055A83"
align="baseline " border="0" width="0" height="0">
<param name="DataURL" value="docList. txt">
<param name="UseHeader " value="True">
</OBJECT>
<!-- Define your table and dynamically fill the cells with the
items from the "DataURL" source, here "docList.tx t"
-->
<TABLE border="1" id="tblDoc" datasrc="#docLi st">
<THEAD> <TR>
<TD><DIV id=docName><but ton
style="width:12 0;">Name</butto*n></DIV></TD>
<TD><DIV id=docDate><but ton
style="width:12 0;">Date</butto*n></DIV></TD>
<TD><DIV id=docSize><but ton style="width:12 0;">Size
(kb)</button></DIV></TD>
</TR>
</THEAD><TBODY> <TR>
<TD align=right><SP AN DATAFLD="docNam e"></SPAN></TD>
<TD align=right><DI V DATAFLD="docDat e"></DIV></TD>
<TD align=right><SP AN DATAFLD="docSiz e"></SPAN></TD>
</tr>
</TBODY></TABLE>
<SCRIPT LANGUAGE="JavaS cript">
<!-- Functions for sorting the columns -->
function srtName() {
docList.SortCol umn = "docName";
docList.Reset() ;
}
docName.onclick = srtName;
function srtDate() {
docList.SortCol umn = "docDate";
docList.Reset() ;
}
docDate.onclick = srtDate;
function srtSize() {
docList.SortCol umn = "docSize";
docList.Reset() ;
}
docSize.onclick = srtSize;
</SCRIPT>
</BODY>
</HTML>
-- END HTML--
---CUT 'N PASTE TEXT--
docName:STRING, docDate:DATE,do *cSize:INT
index.html,03/01/1999,36
toc.html,11/20/1998,51
help.html,11/21/1998,24
source.html,10/15/1998,32
myStyle.css,12/16/1998,20
funct.js,01/16/1999,10
ie.js,02/16/1999,5
ns.js,02/17/1999,4
nav.gif,09/14/1997,22
rArrow.gif,03/12/1997,31
lArrow.gif,03/13/1997,34
--END OF TEXT FILE--
HTH
-Machi
<<<<<<<<<<<<<<< <<<<<<<<<