Vergleich jscripts/validator.js - 1.4.3 - 1.4.8

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 136Zeile 136
					{
for(x = 0; x < options.extra_body.length; ++x)
{

					{
for(x = 0; x < options.extra_body.length; ++x)
{

							extra += "&" + options.extra_body[x] + "=" + this.getValue(options.extra_body[x]);

							extra += "&" + options.extra_body[x] + "=" + encodeURIComponent(this.getValue(options.extra_body[x]));

						}
}
else if(typeof options.extra_body != "undefined")
{

						}
}
else if(typeof options.extra_body != "undefined")
{

						extra = "&" + options.extra_body + "=" + this.getValue(options.extra_body);

						extra = "&" + options.extra_body + "=" + encodeURIComponent(this.getValue(options.extra_body));

					}


					}


					new Ajax.Request(options.url, {method:'post', postBody:"value=" + value + extra, onComplete: function(request) { this.ajaxValidateComplete(id, options, request); }.bind(this)});

					new Ajax.Request(options.url, {method:'post', postBody:"value=" + encodeURIComponent(value) + extra, onComplete: function(request) { this.ajaxValidateComplete(id, options, request); }.bind(this)});


return "loading";
break;
}
type = "notempty";
case "notempty":


return "loading";
break;
}
type = "notempty";
case "notempty":

 
				value = value.replace(/^\s+|\s+$/g,"");

				if(value == null || value.length == 0)
{
return false;

				if(value == null || value.length == 0)
{
return false;