javascript arrays

Results 1 to 3 of 3

Thread: javascript arrays

  1. #1
    Join Date
    Dec 1969

    Default javascript arrays

    Is it possible to populate a javascript array with data from a database using ASP with VBScript.<BR>I need a dynamic drop down menu based on the date the user enters in the first field of a form.

  2. #2
    Join Date
    Dec 1969

    Default use response.write

    This is the syntax for a javascript array,<BR><BR>var myarray = new Array("el1","el2","el3")<BR><BR>You need to build the above using response.write and some loop probably.

  3. #3
    Join Date
    Dec 1969

    Default RE: javascript arrays

    Yes, I&#039;ve done it before. Just use asp to write lines of javascript code that will then run at the client.<BR><BR>e.g.<BR><BR>&#060;script language="JavaScript"&#062;<BR><BR>&#060;%Response .Write "var myArray = new Array(&#039;val1&#039;,&#039;val2&#039;);"%&#062;< BR><BR>&#060;/script&#062;

Posting Permissions

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