MS Dynamics CRM, Web Resources (.html) and Doctype Custom

I am trying to create a heat map on ajax control bing cards using some data from a CRM database. To do this, I created a web resource and uploaded it to CRM. I installed a button that, when clicked, opened my web resource (.html) using heatmaps. Since I use BingMaps Ajax v7 control and an HTML5 canvas to display the generated heat map (as an image), I need to have a Doctype declaration on my web resource. But every time I put this on my html page, loading it into CRM (or editing), CRM just removes my Doctype, and then I only have

<html> <head> ... </head> </body> ... </body> </html> 

The heatmap works fine because I tested it on my local machine (outside CRM). Using IE Dev tools, I get an error that the getContext () method was not found ... So, I assume that I skip the doctype, which CRM deletes every time I edit or load a web resource. So my question is how to successfully display HTML5 content in Microsoft Dynamics CRM using a web resource (simple .HTML file). I do not need to have this web resource on the CRM form page ... When I click the "Map" button, web resources need to be opened on a separate browser page .....

Thank you in advance!

+4
source share
1 answer

DECISION

If you have ever come across this like me, do not use CRM TextEditor, because it removes the Doctype tag when editing your resource using it.

The solution is to edit your web resource on your local computer using a personal text editor and upload it again to CRM. And in this case, the Doctype tag will be there.

+6
source

Source: https://habr.com/ru/post/1382443/


All Articles