Connecting Tech Pros Worldwide Forums | Help | Site Map

populate <option>s from a file using Netscape?

George Hester
Guest
 
Posts: n/a
#1: Jul 20 '05
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
__________________________________

Jeff Thies
Guest
 
Posts: n/a
#2: Jul 20 '05

re: populate <option>s from a file using Netscape?



"George Hester" <hesterloli@hotmail.com> wrote in message
news:K7dMb.137687$JW3.95220@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
__________________________________


HikksNotAtHome
Guest
 
Posts: n/a
#3: Jul 20 '05

re: populate <option>s from a file using Netscape?


In article <K7dMb.137687$JW3.95220@twister.nyroc.rr.com>, "George Hester"
<hesterloli@hotmail.com> writes:
[color=blue]
>What's this?[/color]

What is what?
[color=blue]
>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.[/color]

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

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

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
George Hester
Guest
 
Posts: n/a
#4: Jul 20 '05

re: populate <option>s from a file using Netscape?


Thx for the story

--
George Hester
__________________________________
"HikksNotAtHome" <hikksnotathome@aol.com> wrote in message news:20040111132400.05539.00003602@mb-m16.aol.com...[color=blue]
> In article <K7dMb.137687$JW3.95220@twister.nyroc.rr.com>, "George Hester"
> <hesterloli@hotmail.com> writes:
> [color=green]
> >What's this?[/color]
>
> What is what?
> [color=green]
> >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. [/color]
>
> Only if I have ActiveX scripting enabled (I have it set to prompt and don't
> always tell it yes).
> [color=green]
> >But I doubt this is going to work with Netscape. [/color]
>
> Nope, an IE ActiveX component won't work in Netscape. What about Opera, OmniWeb
> or any of the other non-MS/NS browsers out?
> [color=green]
> >What to do?[/color]
>
> 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[/color]
George Hester
Guest
 
Posts: n/a
#5: Jul 20 '05

re: populate <option>s from a file using Netscape?


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" <nospam@nospam.net> wrote in message news:NtgMb.3748$i4.1028@newsread1.news.atl.earthli nk.net...[color=blue]
>
> "George Hester" <hesterloli@hotmail.com> wrote in message
> news:K7dMb.137687$JW3.95220@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
> __________________________________
>
>[/color]
Randy Webb
Guest
 
Posts: n/a
#6: Jul 20 '05

re: populate <option>s from a file using Netscape?


George Hester writes with his broken newsreader:
[color=blue]
>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.[/color]

I showed you how, you failed to recognize it.
[color=blue]
>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.[/color]



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

George Hester
Guest
 
Posts: n/a
#7: Jul 20 '05

re: populate <option>s from a file using Netscape?


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" <hikksnotathome@aol.com> wrote in message news:0bSdnTX6GdCPo5_dRVn-uQ@comcast.com...[color=blue]
> George Hester writes with his broken newsreader:
> [color=green]
> >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.[/color]
>
> I showed you how, you failed to recognize it.
> [color=green]
> >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.[/color]
>
>
>
> 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
>[/color]
Closed Thread