Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
<script> tag not working in Mango V4?
-
Hi All. Has anybody else struggle with the <script> tag in the new Mango V4 that not working? In Mango V3 the exact same code works 100%? Am i missing something?
-
@ruan-0 Are you inserting it in a custom page or dashboard designer page? I think I noticed this too, I will look into it for you.
-
@ruan-0 I think that previously we were using jQuery to insert the HTML for the custom pages, however we have switched to using jQuery Lite (built into AngularJS). This uses
Element.innerHTML
to insert the markup and as per the HTML5 spec this should not execute scripts - https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML#security_considerationsI would recommend configuring a user module on the "UI settings" page as an entry point for your custom Javascript.
-
@jared-wiltshire Thanks Jared. Will do.
-
@jared-wiltshire Hi Jared. Is there a better solution for this as i am struggling to create the script as the entry point under User modules? Or perhaps if you can give me quick point as to how to go about this?
-
This post is deleted!