// Name: NoBot.NoBotBehavior.debug.js
// Assembly: AjaxControlToolkit
// Version: 4.5.7.1213
// FileVersion: 4.5.7.1213
///
///
///
///
Type.registerNamespace("Sys.Extended.UI");
Sys.Extended.UI.NoBotBehavior = function(element) {
///
/// The NoBotBehavior is used to evaluate JavaScript on the client
/// to ensure they are running from within a browser
///
///
/// DOM Element to associate the behavior with
///
Sys.Extended.UI.NoBotBehavior.initializeBase(this, [element]);
this._ChallengeScript = "";
}
Sys.Extended.UI.NoBotBehavior.prototype = {
initialize : function() {
///
/// Initialize the behavior
///
Sys.Extended.UI.NoBotBehavior.callBaseMethod(this, "initialize");
var response = eval(this._ChallengeScript);
Sys.Extended.UI.NoBotBehavior.callBaseMethod(this, "set_ClientState", [response]);
},
dispose : function() {
///
/// Dispose the behavior
///
Sys.Extended.UI.NoBotBehavior.callBaseMethod(this, "dispose");
},
get_ChallengeScript : function() {
///
/// JavaScript to be evaluated
///
return this._ChallengeScript;
},
set_ChallengeScript : function(value) {
if (this._ChallengeScript != value) {
this._ChallengeScript = value;
this.raisePropertyChanged('ChallengeScript');
}
}
}
Sys.Extended.UI.NoBotBehavior.registerClass("Sys.Extended.UI.NoBotBehavior", Sys.Extended.UI.BehaviorBase);