There are a couple of ways to handle client side scripting of an unknown
element. You can refer to the form element by it's ordinal position in the
form.  i.e... document.forms[0].elements[0].value, or you can write your
function to accept an argument from the calling element, i.e... <input
type="text" name="UNKNOWN" onKeyup="doicontainspaces(this)">

Hope that helps.

----- Original Message -----
From: "Muhammad Asif" <[EMAIL PROTECTED]>
To: "CF-Server" <[EMAIL PROTECTED]>
Sent: Wednesday, January 03, 2001 3:34 AM
Subject: FieldNames Collection and


> I am using FieldName collection to get variables from a
> form and convert them to hidden variables as shown below:
>
> <cfhttp url="http://masif/delme/delme.cfm" method="POST" >
>  <cfloop index="idx" list="#FieldNames#">
>   <cfhttpparam name="#idx#" type="FORMFIELD" value="#evaluate(idx)#">
>  </cfloop>
> </cfhttp>
>
> every thing fine...but when i receive variable name from
> FieldName collection  it is coverted into all UpperCase
> this cause an error when i reference them in JavaScript
> as original variable name in form is not in Upper Case
> How can we work around this .....
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to