help with passing arrays

Results 1 to 4 of 4

Thread: help with passing arrays

  1. #1
    Sunny Guest

    Default help with passing arrays

    i have an array that i populate in a sub called in the document, i need to pass this array to the next page. how do i pass it? <BR><BR>sub this ()<BR> redim theArray(someForm.options.length-1)<BR> For i = 0 To ubound(theArray) <BR> theArray(i) = (someForm.options (i).value) <BR> Next <BR> For i = 0 To ubound(theArray) <BR> alert(theArray(i)) <BR> Next<BR>end sub

  2. #2
    vijay Guest

    Default RE: help with passing arrays

    Two things.<BR>first: the code seems to be a client side VBScript validation. Naturally it won&#039;t work in netscape.<BR><BR>secondly: what is javascript alert doing in VBScript code. I am sorry, but i never coded cleint side VBscript, so i might be wrong.<BR><BR>======having said that...<BR><BR>you pass information from one page to the other(via server) through the URL or the Form fields. I Guess you cannot accesss the client side variable at your server.<BR><BR><BR>

  3. #3
    Sunny Guest

    Default RE: help with passing arrays

    Vijay, I am capturing an onclick event and passing it to the method, I donot know how u cud do that in server side script, guess u cud help me with it<BR><BR>sunny

  4. #4
    vijay Guest

    Default RE: help with passing arrays

    OnClick events occur at the client(browser). So you CANNOT write the server-side script to handle it. <BR><BR>One way is to create a hidden field in your HTML page & write a string consisting of all the data you want to pass, seperated buy a seperator. <BR><BR>Can comment more you come up with specific requirement & RELEVENT code.

Posting Permissions

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