[Javascript] Data Loading

BEKIM BACAJ trojani2000 at hotmail.com
Mon Mar 8 20:32:35 CST 2004


>Hello Tim,
>If you are writing for explorer, why don't you simply use the "Data source 
>object"?
>There are some amazing things you can do with it, in a amatter of 
>formating, organising, sorting, arranging,rearranging, refreshing, data you 
>acces from any text file like html, txt, csv etc
>
>make a search for this object references or try the dhtml msdn workshop 
>directly.
>sorry I can't give you a direct link cause they reorganise their site very 
>often and I haven't pay a visit since 2001 there.
>God luck

Hi again,
here are some links to all you need,
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/databind/overview/databinding_overviews_entry.asp

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/databind/overview/databinding_overviews_entry.asp

Here are some examples:
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/databind/overview/databinding_overviews_entry.asp
For a start,
Here is how you use  the comma separated list to create a table

<OBJECT id="elements" CLASSID="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83">
	<PARAM NAME="DataURL" VALUE="thedata.txt">
	<PARAM NAME="UseHeader" VALUE="True">
</OBJECT>

<TABLE datasrc="#elements">
<THEAD><TR 
STYLE="font-weight:bold"><TD>Element</TD><TD>Symbol</TD></TR></THEAD>
<TBODY>
<TR><TD><DIV datafld="Element"></DIV></TD><TD><DIV 
datafld="Symbol"></DIV></TD></TR>
</TBODY>
</TABLE>

and here are the data that this object uses to build and display :

Element,Symbol
Hydrogen,H
Helium,He
Lithium,Li
Beryllium,Be
Boron,B
Carbon,C
Nitrogen,N
Oxygen,O
Fluorine,F
Neon,Ne

Create a txt file "thedata.txt" place it in the same folder or specify the 
exact location on datasrcobj

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail




More information about the Javascript mailing list