Labyrinet
07-14-2003, 02:56 PM
Here's my HTML Code
<HTML>
<HEAD>
<TITLE>Data</TITLE>
<SCRIPT LANGUAGE="JavaScript">
</SCRIPT>
</HEAD>
<SELECT NAME="#Fruit" onLoad="VALUE="Fruit" size="1"></SELECT>
<TABLE DATASRC="#Fruit" BORDER=1 ALIGN="center">
<THEAD STYLE="background-color:yellow; text-align:center">
<TR><TD>Fruit</TD>
</TR>
</THEAD>
<TR>
<TD><DIV ID="col1" DATAFLD="Fruit" ></DIV></TD>
</TR>
</TABLE>
<OBJECT ID="Fruit" CLASSID="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83">
<PARAM NAME="DataURL" VALUE="DropDown.txt">
<PARAM NAME="UseHeader" VALUE="True">
<PARAM NAME="FieldDelim" VALUE=" ">
</OBJECT>
</HTML>
Here's the conents of my .txt file
Fruit
Apples
Oranges
Bananas
Grapes
It works fine in a table but can anyone help me make the .txt file contents appear in a dropdown listbox?
I'm very new to js and this is driving me crazy.
Thank You,
Labyrinet
<HTML>
<HEAD>
<TITLE>Data</TITLE>
<SCRIPT LANGUAGE="JavaScript">
</SCRIPT>
</HEAD>
<SELECT NAME="#Fruit" onLoad="VALUE="Fruit" size="1"></SELECT>
<TABLE DATASRC="#Fruit" BORDER=1 ALIGN="center">
<THEAD STYLE="background-color:yellow; text-align:center">
<TR><TD>Fruit</TD>
</TR>
</THEAD>
<TR>
<TD><DIV ID="col1" DATAFLD="Fruit" ></DIV></TD>
</TR>
</TABLE>
<OBJECT ID="Fruit" CLASSID="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83">
<PARAM NAME="DataURL" VALUE="DropDown.txt">
<PARAM NAME="UseHeader" VALUE="True">
<PARAM NAME="FieldDelim" VALUE=" ">
</OBJECT>
</HTML>
Here's the conents of my .txt file
Fruit
Apples
Oranges
Bananas
Grapes
It works fine in a table but can anyone help me make the .txt file contents appear in a dropdown listbox?
I'm very new to js and this is driving me crazy.
Thank You,
Labyrinet