Hey to all!
How can I load data from a simple .txt file into a drop down box using
HTML or javascript. I have this:
<select name="Soup_1">
<option value="Soup Choice 1">-------------- Choice 1 --------------
<option value="CREAM OF BROCCOLI">Cream of Broccoli
<option value="FRENCH ONION W/ CROUTONS">French Onion W/ Croutons
<option value="HAMBURGER TOMATO SOUP">Hamburger Tomato
<option value="LOW SODIUM CHICKEN RICE">Low Sodium Chicken Rice
<option value="LOW SODIUM BEEF BARLEY">Low Sodium Beef Barley
<option value="LOW SODIUM BEEF NOODLE">Low Sodium Beef Noodle
<option value="SPLIT PEA">Split Pea
</select>
This list will grow and I would rather not have it in the webpage it's
self, I would like the 'Soups" loaded from a text file. How can I do
this?
THANK YOU!!!
|
|
0
|
|
|
|
Reply
|
Alx1230 (1)
|
12/23/2005 6:20:03 AM |
|
Al-Bot wrote:
> How can I load data from a simple .txt file into a drop down box using
> HTML or javascript. [...]
Try XMLHttpRequest. Note that this will prevent all customers with absent
support for client-side scripting or XMLHttpRequest from ordering anything,
so you definitely want to implement a server-side alternative for them.
> THANK YOU!!!
You're welcome. Please do no SHOUT.
PointedEars
|
|
0
|
|
|
|
Reply
|
Thomas
|
12/23/2005 11:24:21 AM
|
|