We have at our organization CRM Dynamics 365 version 8.2 on premise. I've built a web resource and it's actually works well until you focusout from the pages body and the page attempts to run the parent.setEmailRange() function and get crushed. I did include the ClientGlobalContext.js.aspx file but for some reason it doesn't find that function. Here you can find the code until the body of the page:
<html><head>
<meta http-equiv="”Content-Type”" content="”text/html;charset=utf-8″">
<title>הוספת שלט חדש</title>
<style>
.loader {
border: 32px solid #f3f3f3;
border-radius: 50%;
border-top: 32px solid black;
width: 200px;
height: 200px;
-webkit-animation: spin 2s linear infinite; /* Safari */
animation: spin 2s linear infinite;
margin: auto;
}
/* Safari */
@-webkit-keyframes spin {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
modal-backdrop,
.modal-backdrop.fade.in{
opacity: 1;
filter: alpha(opacity=100);
background: #fff;
}
</style>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet">
<link href="https://www.w3schools.com/w3css/4/w3.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script src="../../ClientGlobalContext.js.aspx"></script>
<script src="http://crm2016front/HaifaTest/WebResources/atech_/common/CRMServerServices.js"></script>
<script src="../scripts/script.js"></script>
<script>
- - - - - - - -
</script>
<meta charset="utf-8"><meta><meta><meta><meta><meta><meta><meta><meta><meta><meta></head>
<body dir="rtl" style="direction: rtl; overflow-wrap: break-word;" onfocusout="parent.setEmailRange();">