[Javascript] RE: Script transferring values - so close (Peter Brunone)

Scott.Wiseman swiseman at remax-cahi.com
Thu Jun 13 12:11:14 CDT 2002


<SCRIPT LANGUAGE="JavaScript">
<!-- Begin

   var str = "000";
	var num = 1;
//	str += num;
//	document.write(str); // ==> 0001

     officearray = new Array(2000);

********** this is not working ****************
********** this is not working ****************

  <% for x = lbound(OfficeNameNumber) to ubound(OfficeNameNumber) %>
     <% if OfficeNameNumber(x) <> "" then %>
         num =   <%=x%>   ;
         str += num;     
//         document.write(str)
          officearray[=str]= '<%= replace(OfficeNameNumber(x),"'","\'") %>';
     <% end if %>
     
  <%next%>
********** this is not working ****************
********** this is not working ****************


function getofficename(number,thefield)
{
   if(officearray[number]>"")
   {
     thefield.value = officearray[number];
   }  
}


//-->
</script>

-----Original Message-----
From: Peter Brunone [mailto:peter at brunone.com]
Sent: Thursday, June 13, 2002 10:13 AM
To: javascript at LaTech.edu
Subject: RE: [Javascript] RE: Script transferring values - so close
(Peter Brunone)



	How about setting a cookie?  I don't think they share the same
limitations
as the querystring (which may or may not still be truncated at 255 these
days).

|-----Original Message-----
|From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
|
|Thanks Rodney and Peter but I have already tried the Query string
|option. I cannot use it because on the actual form I will have to much
|data coming over (I just used two as an example). Also I cannot use
|any other method but Javascript (to many details to go into). There
|has to be a way in Javascript to pass values from one page to another
|page(an html form I created and is sitting in same dir. as original)
|in the same browser. Believe me when I say I have no other option.
|
|
|Why not use METHOD="GET" and then parse the values out of the query
|string
|?
|
|Rodney
|-------------------------------------------------------------------
|------------------
|Glenn,
|
|             In the script below, you are specifying a form called
|"form1" that does not
|exist.  If you were to change "form1" to "mno", you would of course
|get the
|data in the textarea called "Newform"... but apparently that's not
|quite
|what you want.
|             Have you considered a server-side solution?  Parsing the
|querystring (as
|Rodney suggested) would definitely work, but if you have the option to
|use
|CGI, ASP, PHP, etc. I would definitely recommend doing so.  Your
|server
|admin will know what tools you can use; it's probably worth the call.
|
|Regards,
|
|Peter
|
|
|
|_______________________________________________
|Javascript mailing list
|Javascript at LaTech.edu
|https://lists.LaTech.edu/mailman/listinfo/javascript
|

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list