Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <cfif thisTag.executionMode eq "end">
- <cfparam name="attributes.captchaWidth" default="375" />
- <cfparam name="attributes.captchaHeight" default="74" />
- <cfparam name="attributes.captchaFontSize" default="25" />
- <cfparam name="attributes.captchaDifficulty" default="medium" />
- <cfset captcha = $.captcha.generate() />
- <cfoutput>
- <cfsavecontent variable="thisTag.generatedContent">
- <c:field attributeCollection="#attributes#">
- <cfimage action="captcha"
- text=captcha.captchaText
- width=attributes.captchaWidth
- height=attributes.captchaHeight
- fontSize=attributes.captchaFontSize
- difficulty=attributes.captchaDifficulty />
- <c:input wrapper="false" attributeCollection="#attributes#" />
- <c:hidden name="#attributes.name#Hash" value="#captcha.captchaHash#" />
- </c:field>
- </cfsavecontent>
- </cfoutput>
- </cfif>
Add Comment
Please, Sign In to add comment