Hello,
I'm trying to test Cross domaine calls in dynamics 365 online
I have created this web resource, It's making the call without problem
But when I try to call the funcion from the crm form :
Xrm.Page.getControl(
"WebResource_<Name>"
).getObject().contentWindow.window.callTheJsonp();
I get an Error "contentWindow.window.callTheJsonp is not a function"
<!DOCTYPE html>
<html lang="en">
<head>
<title>JavaScript - read JSON from URL</title>
<script src="code.jquery.com/jquery-3.2.1.min.js"></script>
</head>
<script>
function callTheJsonp()
{
debugger;
alert("zz");
$.getJSON('ttp://time.jsontest.com', function(data) {
debugger;
alert(data);
});
}
</script>
<body onload=callTheJsonp() >
<div class="mypanel"> uuu</div>
</body>
</html>
Any Ideas ?
What I'm trying to do is to call the JS function in HTML webressource on Event (Key presse)
*This post is locked for comments
I have the same question (0)