Link to home
Start Free TrialLog in
Avatar of eaweb
eawebFlag for undefined

asked on

how to pass a value to an ajaxError function

hi,

i have the follwong error trigger:

$("#" + __this.inputField).bind("ajaxError", function(event, request, settings) { __this.triggerError(event, request, settings) });

which execute the follwing:

SBAChecker.prototype.triggerError = function(event, request, settings) {
      $("#" + this.inputField).unbind("ajaxError");
      $("#" + this.loaderImage).hide();
          if (this.inputField == "RecBankBICCode") {
                this.unavailable3();
            } else {
                this.unavailable33();
            }
}

my problem is that i cannot get the value of "__this.inputField" in order to use it when SBAChecker.prototype.triggerError is being executed.

how can i do that?
ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial