0
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 your fields to fill in and a function to "submit" this information typed: My doubt is the following: after sending this information, a page will be loaded, I need a js (or any other code that fits) that reads the header of this new page and looks for the following value: "Cookie=1" If it finds this value, then I want the user to be directed to another URL.
Any idea?
ps: The code below is the form submission, after the execution of this I want "something" to read the header in search of 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"
}