javascript array from asp

Results 1 to 2 of 2

Thread: javascript array from asp

  1. #1
    Jason L Guest

    Default javascript array from asp

    Does anyone know how to read a recordset from asp into a java array?<BR>I would like to use the array to populate a second listbox based on the value selected in the first listbox. I understand that I can do this with values stored in a javascript array but I don&#039t know how to get the values into the array.<BR><BR>thanks

  2. #2
    Join Date
    Dec 1969

    Default RE: javascript array from asp

    just response.write the values in<BR><BR>Response.Write("var arr = new Array")<BR>var x = 0;<BR>while(!objRS.EOF) {<BR> Response.Write("arr[" + x + "] = &#039" + objRS("value") + "&#039;")<BR> x++<BR> objRS.movenext();<BR>}<BR><BR>basically.<BR><BR>j

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts