From: <ndi...@us...> - 2002-10-24 00:55:15
|
Update of /cvsroot/modus/org/bacfug/modus/form In directory usw-pr-cvs1:/tmp/cvs-serv18770/bacfug/modus/form Modified Files: formfieldfactory.cfc Log Message: added makeHidden (thanks to Jeremy Firsenbaum for this) Index: formfieldfactory.cfc =================================================================== RCS file: /cvsroot/modus/org/bacfug/modus/form/formfieldfactory.cfc,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** formfieldfactory.cfc 3 Oct 2002 05:45:19 -0000 1.5 --- formfieldfactory.cfc 24 Oct 2002 00:55:12 -0000 1.6 *************** *** 99,102 **** <cfreturn "<input type=""file"" name=""" & arguments.name & """>"> </cffunction> ! </cfcomponent> --- 99,107 ---- <cfreturn "<input type=""file"" name=""" & arguments.name & """>"> </cffunction> ! <!--- Make hidden ---> ! <cffunction name="makeHidden" access="public" output="no" returntype="string" hint="makes a hidden field"> ! <cfargument name="name" required="yes" type="variableName"> ! <cfargument name="value" required="yes" type="string"> ! <cfreturn "<input type=""hidden"" name=""" & arguments.name & """ value=""" & htmlEditFormat(arguments.value)& """>"> ! </cffunction> </cfcomponent> |