<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!