> > I have a string of about 500 variables that is generated
> client-side by
> > JavaScript.  I need to get it to the server somehow.  The
> string is far
> too
> > long to be passed in the URL.  How could I get it to the server for
> > processing?  Anyone have any ideas?

Use a hidden form post:

<script language=JavaScript><!--
function sendToServer(){
  document.hiddenForm.myVars.value=my500variables
  document.hiddenForm.submit();
}
//-->
</script>

then in the body somewhere:

<form name=hiddenForm method=POST action="myaction.cfm">
<input type=hidden name=myVars value="">
</form>

then just trigger the script:

<a href="#" onClick="sendToServer();return false">Send It!</a>

And you can put the hidden form in a hidden frame if you don't want the
current page to reload.


Hope this helps,

Ron Allen Hornbaker
President/CTO
Humankind Systems, Inc.
http://humankindsystems.com
mailto:[EMAIL PROTECTED]

..¸_¸.·´¯) http://www.BookCrossing.com ~ Read and Release! (¯`·.¸_¸.




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to