Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save trycf/3a9aa1e71c15fdba2491beb74bdf694d to your computer and use it in GitHub Desktop.

Select an option

Save trycf/3a9aa1e71c15fdba2491beb74bdf694d to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
sType = "text";
sName = "first_name";
sDisplay = "";
sSize= "12";
sMaxChar = "127";
scl = "somethinf";
sClass = "btn-lg";
sAccessKey = "";
bEdit = false;
iTabIndex = "";
sPassThrough = "";
var sHTML = "";
sHTML = sHTML & "<input type=""" & HTMLEditFormat(sType) & """ name=""" &
HTMLEditFormat(sName)& """ id=""" &
HTMLEditFormat(sName) & """ value=""" & HTMLEditFormat(sDisplay) &
""" size=""" & HTMLEditFormat(sSize) & """ maxlength=""" &
HTMLEditFormat(sMaxChar) & """ class=""" &
HTMLEditFormat(scl) & " " & sClass & """ tabindex=""" &
HTMLEditFormat(iTabIndex) & """ accesskey=""" & HTMLEditFormat(sAccessKey) &
""" " & sPassThrough;
if (not bEdit ) sHTML = sHTML & " disabled ";
sHTML = sHTML & " />";
writeDump(sHTML);
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment