Persisting Variable values

Results 1 to 3 of 3

Thread: Persisting Variable values

  1. #1
    Join Date
    Dec 1969

    Default Persisting Variable values

    Hello,<BR> I have a problem with persisting values outside a javascript function. Basically I have an onchange event with a select box that calls a function, passing in the value select from the select list.<BR><BR>&#060;SELECT NAME="cboSupCode" onchange="BuildList(this);"&#062; <BR> <BR><BR>&#060;SCRIPT Language="JavaScript"&#062;<BR>&#060;!--<BR>function BuildList(num)<BR>{<BR> thehref = num.options[num.selectedIndex].value;<BR> alert(thehref)<BR>}<BR>//--&#062;/<BR><BR>&#060;/Script&#062;<BR><BR>What I want to do not, is use the value passed to the JScript function to be used as a parameter for a call to a command object in vbscript (ASP).<BR><BR>Does anyone know if this is possible?<BR><BR>Thanks<BR><BR>Lenin

  2. #2
    jason Guest

    Default RE: Persisting Variable values

    if you need to pass client side variables to server side script the only way to go about it use to use the querystring, or hidden form fields. the client and the server are not in the same place. this should be in the FAQ, and people should read it<BR><BR><BR>jason

  3. #3
    lagerBoy Guest

    Default What If

    What about, if I&#039m storing a multi-dimensional array on the client, for example:<BR><BR> 1 2 3 4<BR> ------------------------------------<BR>Array0 Bob 31 22/7/68 Red<BR>Array1 Jenny 36 31/8/63 Blue<BR><BR>So, the user selects a bunch of options, clicks [ADD], thereby adding a new row to this client-side array.<BR><BR>Finally, when finished, the user clicks [SUBMIT] to send the page to an ASP processing page where each row will be written to a database.<BR><BR>What is the most efficient method of doing this?

Posting Permissions

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