Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javascript arrays and database

Status
Not open for further replies.

DKL01

Programmer
Sep 14, 2000
233
US
Hello All:

I have navigation bar in my ASP screen. User has to select several values from drop-down box prior to hitting Submit button. The contents of the drop-down boxes change dynamically based on value selected in previous drop-down box. I’m populating the values in drop-down boxes from javascript arrays. At present the values in javascript arrays are hardcoded. Now I need to polulate the javascript arrays from SQL Server tables. I’m wondering what could be the best way to implement this. I really appreciate some suggestions.

Thanks
 
I have done something like this and I just use a do while loop to cycle through the record set.

do while not rs.EOF

then have it write out your array

Response.write("array values")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top