473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

populate <option>s from a file using Netscape?

What's this? IE has a simple way using an ActiveX object so that I can load a text file into the <OPTION>s like a database. It is called Tabular Control. But I doubt this is going to work with Netscape. What to do?

--
George Hester
__________________________________
Jul 20 '05 #1
6 1485

"George Hester" <he********@hotmail.com> wrote in message
news:K7********************@twister.nyroc.rr.com.. .
What's this? IE has a simple way using an ActiveX object so that I can load
a text file into the <OPTION>s like a database. It is called Tabular
Control. But I doubt this is going to work with Netscape. What to do?

adding options to a select has been around for a long long time.

A quick Google search yields this:

http://www.mattkruse.com/javascript/...ox/source.html

No reason to use an Active X control.

Jeff
--
George Hester
__________________________________
Jul 20 '05 #2
In article <K7********************@twister.nyroc.rr.com>, "George Hester"
<he********@hotmail.com> writes:
What's this?
What is what?
IE has a simple way using an ActiveX object so that I can
load a text file into the <OPTION>s like a database. It is called
Tabular Control.
Only if I have ActiveX scripting enabled (I have it set to prompt and don't
always tell it yes).
But I doubt this is going to work with Netscape.
Nope, an IE ActiveX component won't work in Netscape. What about Opera, OmniWeb
or any of the other non-MS/NS browsers out?
What to do?


About what?

Suggestions:

1) Read the FAQ. Especially section 2.4 100 times or so.
2) Phrase your question well.
3) Include your question in the post.
4) Fix your newsreader.

Solution:

Stop using the IE-only ActiveX Control.

If the data file is being generated, whatever you are generating it with should
be capable of adding some extra data. Instead of generating:

item0Value,item0Text
item1Value,item1Text
item2Value,item2Text

Have it generate:

myArray = new Array();
myArray[0] = ["item0Value","item0Text"];
myArray[1] = ["item1Value","item1Text"];
myArray[2] = ["item2Value","item2Text"];

And then load it as mySelects.js and dynamically populate the select.

"Dynamically Populate Select List" in a c.l.j archive search returns 92 threads
that will show ways to populate it dynamically. Or simply loop through and
document.write them.
--
Randy
Jul 20 '05 #3
Thx for the story

--
George Hester
__________________________________
"HikksNotAtHome" <hi************@aol.com> wrote in message news:20***************************@mb-m16.aol.com...
In article <K7********************@twister.nyroc.rr.com>, "George Hester"
<he********@hotmail.com> writes:
What's this?


What is what?
IE has a simple way using an ActiveX object so that I can
load a text file into the <OPTION>s like a database. It is called
Tabular Control.


Only if I have ActiveX scripting enabled (I have it set to prompt and don't
always tell it yes).
But I doubt this is going to work with Netscape.


Nope, an IE ActiveX component won't work in Netscape. What about Opera, OmniWeb
or any of the other non-MS/NS browsers out?
What to do?


About what?

Suggestions:

1) Read the FAQ. Especially section 2.4 100 times or so.
2) Phrase your question well.
3) Include your question in the post.
4) Fix your newsreader.

Solution:

Stop using the IE-only ActiveX Control.

If the data file is being generated, whatever you are generating it with should
be capable of adding some extra data. Instead of generating:

item0Value,item0Text
item1Value,item1Text
item2Value,item2Text

Have it generate:

myArray = new Array();
myArray[0] = ["item0Value","item0Text"];
myArray[1] = ["item1Value","item1Text"];
myArray[2] = ["item2Value","item2Text"];

And then load it as mySelects.js and dynamically populate the select.

"Dynamically Populate Select List" in a c.l.j archive search returns 92 threads
that will show ways to populate it dynamically. Or simply loop through and
document.write them.
--
Randy

Jul 20 '05 #4
OK thanks for that select.js. I may use it to help me with something else. But my issue still stands. How to get what is going to populate the <OPTION> from a text file so they are available in the HTML page and then select.js can do something with the data. My issue is not to do with what can I do with the data from the text but how to get it into the HTML from the text file so that I can work with it.

I was hoping for some sort of function in select.js like ImportTextFromFileToBeUsedInTheOptionTag() But I didn'e see that.
--
George Hester
__________________________________
"Jeff Thies" <no****@nospam.net> wrote in message news:Nt****************@newsread1.news.atl.earthli nk.net...

"George Hester" <he********@hotmail.com> wrote in message
news:K7********************@twister.nyroc.rr.com.. .
What's this? IE has a simple way using an ActiveX object so that I can load
a text file into the <OPTION>s like a database. It is called Tabular
Control. But I doubt this is going to work with Netscape. What to do?

adding options to a select has been around for a long long time.

A quick Google search yields this:

http://www.mattkruse.com/javascript/...ox/source.html

No reason to use an Active X control.

Jeff


--
George Hester
__________________________________

Jul 20 '05 #5
George Hester writes with his broken newsreader:
OK thanks for that select.js. I may use it to help me with something
else. But my issue still stands. How to get what is going to populate
the <OPTION> from a text file so they are available in the HTML page
and then select.js can do something with the data.
I showed you how, you failed to recognize it.
My issue is not to do with what can I do with the data from the text
but how to get it into the HTML from the text file so that I can work
with it.


Either as an array in an external .js file, or a java applet, or an
HTTPResponse Object, or an IFrame (and read its source), or a Frame.

If you had bothered to read the FAQ, you would have found out about two
of those ways (Java applet and the HTTPResponse Object).
--
Randy

Jul 20 '05 #6
Oh that's allright. I can use server side ADO so it's no big deal. I looked in select.js. I thought you had suggested that. My mistake. Sorry.

--
George Hester
__________________________________
"Randy Webb" <hi************@aol.com> wrote in message news:0b********************@comcast.com...
George Hester writes with his broken newsreader:
>OK thanks for that select.js. I may use it to help me with something
>else. But my issue still stands. How to get what is going to populate
>the <OPTION> from a text file so they are available in the HTML page
>and then select.js can do something with the data.


I showed you how, you failed to recognize it.
>My issue is not to do with what can I do with the data from the text
>but how to get it into the HTML from the text file so that I can work
>with it.




Either as an array in an external .js file, or a java applet, or an
HTTPResponse Object, or an IFrame (and read its source), or a Frame.

If you had bothered to read the FAQ, you would have found out about two
of those ways (Java applet and the HTTPResponse Object).


--
Randy

Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ang Talunin | last post by:
Hey, I wondering if it's possible to retrieve all the <option>-fields from a <select> when posting a <form> to a php file Example: I've got a form like this: <form action = phpfile.php...
6
by: George Hester | last post by:
Try it. Using Microsoft Internet Explorer 5.5 SP2 (that's the version I am using) in Windows 2000 SP3: In a html put this in: <select type="select-one" id="oSel1"> <option value="1"...
6
by: Hal Vaughan | last post by:
I'm using KDE on Linux, with Konqueror as the testing browser for this project. I've recently upgraded, so I realize some of the bugs I'm dealing with may or may not be my program, and could also...
2
by: LC's No-Spam Newsreading account | last post by:
I have a form arranged in a table (you can see an example in the page http://cosmos.mi.iasf.cnr.it/~lssadmin/Website/LSS/Help/query.html) The table is on three columns but has a structure like...
3
by: Iain Hallam | last post by:
Hi. I've been using display:none on the style property of some <option> elements in my forms, which works fine with Mozilla - as expected it removes the option from my dropdown (although it...
6
by: Chris Fink | last post by:
Does anyone know it is possible to include a small image(.gif .jpeg) within a <SELECT><option> so that the user would see the option text as well as a little image(icon) in the option? I know this...
6
by: joseph.lindley | last post by:
Forgive me for I am a bit of a web-dev novice - but I'm not doing too bad. I'm currently working with a bit of javascript to dynamically add <option>s into a select box. My code currently works...
4
by: Man-wai Chang | last post by:
-- iTech Consulting Co., Ltd. Expert of ePOS solutions Website: http://www.itech.com.hk (IE only) Tel: (852)2325 3883 Fax: (852)2325 8288
14
by: The Natural Philosopher | last post by:
This is a nasty one and I can't see my way out of it. I have a bunch of select statements in a form, and each select statement has an onchange="do_something(this)" in it, and this works...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.