Welcome, Guest. Please login or register.
Did you miss your activation email?
Oct. 11, 2008, 10:47:34 AM
47669 Posts in 10453 Topics by 5339 Members
Latest Member: phamlehoaian
News: New to PRADO? The PRADO blog tutorial is a good start point.
 
The PRADO Community » Prado v3.x » Bug Reports » BUG: TCaptchaValidator with TCaptcha.CaseSensitive=false JS Error « previous next »
Pages: [1] Print
Author Topic: BUG: TCaptchaValidator with TCaptcha.CaseSensitive=false JS Error  (Read 441 times)
sebathi
Senior Member
***

Karma: 2
Offline Offline

Posts: 87



View Profile WWW
« on: Apr. 30, 2008, 04:06:47 PM »

When you use the TCaptchaValidator with TCaptcha.CaseSensitive=false, the clientscript does not work.

I fix it for myself changing the file System.Web.Javascripts.source.prado.validator.validation3.js (LINE: 1455).


Code:
      /**
* @return boolean true if the input value is not empty nor equal to the initial value.
*/
evaluateIsValid : function()
{
var a = this.getValidationValue();
if (this.options.CaseSensitive==false)
a = a.toUpperCase();

var h = 0;
for(var i = a.length-1; i >= 0; --i)
h += a.charCodeAt(i);
return h == this.options.TokenHash;
},
Logged
Pages: [1] Print 
« previous next »
Jump to: