Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

CRM 2013 HTML Web Resource removed Body OnLoad event

$
0
0

Hi All,

I have a pretty standard web resource to change the source of an Iframe depending on text entered into a box, however when I publish it, the onload event of the Body tag is removed.

I have modified the function called by the onload from the actual functionality that I want, to a standard alert of "Loaded", but even this won't pass.

The entire contents of the file is below

<html><head><script type="text/javascript">function callASPX() {var uid = Xrm.Page.context.getUserId(); var server =Xrm.Page.context.getServerUrl(); document.getElementById("Search").src="<some url>";}</script><script type="text/javascript">function call() {alert("loaded");}</script></head><body onload="call()"><iframe id="Search" src="about:blank"></iframe></body></html>

So far 2013 has been riddled with bugs, so I'm wondering if this is one of them

Thanks!


Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>