Skip to content

Instantly share code, notes, and snippets.

@EvanGertis
Created March 10, 2021 13:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EvanGertis/463aabe806ba3622f8c9c3d9e27f3601 to your computer and use it in GitHub Desktop.
Save EvanGertis/463aabe806ba3622f8c9c3d9e27f3601 to your computer and use it in GitHub Desktop.
function processResponse(){
if(asyncRequest.readyState==4 && asyncRequest.status==200 && asyncRequest.responseXML){
var emails = asyncRequest.responseXML.getElementsByTagName("email");
var removeWarning = false;
for(var i=0; i < emails.length;i++){
removeWarning = true;
if(email.value==emails[i].textContent){
addBlackListEmailWarning(email, " |black listed|");
removeWarning = false;
}
}
if(removeWarning && document.getElementById("email-blacklist-warning")){
document.getElementById("email-blacklist-warning").remove();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment