Good morning, friends! I have a question regarding an operation that I need to perform after sending the data of a form. I have a form that its proper fields to fill in and a function to "submit" this typed information: My question is this: after submitting this information, a page will be loaded, I need a js (or any other code that meets) that reads the Header of this new page and look for the following value: "Cookie = 1" If it finds this value, then I want the user to be directed to another URL.
Any ideas?
ps: The code below is the form submission, after the execution of this I want "something" to read the header for the string I mentioned above.
submitInputValue: "Enviar",
setFields: function(e) {
switch (e) {
case "login":
this.loginFields = !0, this.submitInputValue = "Acessar";
break;
case "pwdWillExp":
this.pwdWillExpFields = !0, this.submitInputValue = "Alterar a Senha";
break;
case "changePwd":
this.changePwdFields = !0, this.submitInputValue = "Alterar a Senha";
break;
case "pwdNotChanged":
this.pwdNotChangedFields = !0, this.submitInputValue = "Alterar a Senha";
break;
case "sessionExpired":
this.sessionExpiredFields = !0, this.submitInputValue = "Acessar";
break;
case "acessPrivate":
this.accessPrivateFields = !0, this.submitInputValue = "Acessar";
break;
case "solicitPwdChg":
this.solicitPwdChgFields = !0, this.submitInputValue = "Alterar a Senha";
break;
default:
this.loginFields = !0, this.submitInputValue = "Acessar"
}