Why not read the data into array at your global.asa?
----------------------------------------------------------------------------
-----------
Sub Application_OnStart
Dim NavButtonArray(70,100), NavButtonCntArray(70,1)
Set DataConn = Server.CreateObject("ADODB.Connection")
----------------------------------------------------------------------------
-----------
etc.
----- Original Message -----
From: mark hembree <mhembree@r...>
To: javascript <javascript@p...>
Sent: Monday, March 05, 2001 7:28 PM
Subject: [javascript] text files client side
> A little help-please:
>
> I am writing an internet application ASP(server)/Javascript(client)where I
> need to access some 2,000 counties by the state they are in. I am
> relunctant to have the users bounce off of the database because it will be
> on a remote server. The user will select a state (easy enough) then I need
> a droplist for the counties in that state...
>
> The only thin I could think of is to download a test file to the user's
> machine and on load event load the data into arrays on the client machine.
> I really don't want to download all of this data each time the screen is
> loaded, so I figured I would load a text file onto the client machine and
> check a cookie to see if the file on the user's machine was older than the
> one on the server.
>
> This whole theory works if I can place a text file onto the user's
> machine. I know I can download the file via FTP, but I really wanted to do
> this without a lot of user intervention. Also, another unknow is that
> actual code involved in reading the text file by a java script on the
> client's machine.
>
> Has any one done anything like this or have any suggestions...
>
> thanks in advance..
> Mark
>