Page 1 of 1

What is the value of CaptchaDir

PostPosted: 22 Nov 2017 11:18
by Omega8
Hi,

In the demo after the new assignment of CaptchaDIr

CaptchaDir := WebApplication.Request.ScriptName + '/images';

I search for the value of by means of WebApplication.ShowMessage( WebApplication.Request.ScriptName + '/images') all I get is '/images'

When I set CaptchaDir:=IWServerCOntroller.ContentPath+ '/css/FancyCaptcha/imgs'; The component does not find the images.
So what should be value of CaptchaDir.

Thank you

Re: What is the value of CaptchaDir

PostPosted: 22 Nov 2017 18:26
by Jorge Sousa
Hi

About

I search for the value of by means of WebApplication.ShowMessage( WebApplication.Request.ScriptName + '/images') all I get is '/images'


ScriptName is filled when your are in ISAPI mode

When I set CaptchaDir:=IWServerCOntroller.ContentPath+ '/css/FancyCaptcha/imgs'; The component does not find the images.


Thats because the component always adds internal the /imgs subfolder. use '/css/FancyCaptcha' only, sorry about that, docx should be more clear:

https://www.cgdevtools.com/docs/_html/IWCGJQFancyCaptcha.TIWCGJQFancyCaptchaOptions.CaptchaDir.htm