Link to home
Create AccountLog 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
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer