• Recent
    • Tags
    • Popular
    • Register
    • Login

    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.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    <script> tag not working in Mango V4?

    Scripting general Discussion
    2
    6
    1.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      Ruan 0
      last edited by

      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?

      Jared WiltshireJ 2 Replies Last reply Reply Quote 0
      • Jared WiltshireJ
        Jared Wiltshire @Ruan 0
        last edited by

        @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.

        Developer at Radix IoT

        1 Reply Last reply Reply Quote 0
        • Jared WiltshireJ
          Jared Wiltshire @Ruan 0
          last edited by

          @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_considerations

          I would recommend configuring a user module on the "UI settings" page as an entry point for your custom Javascript.

          Developer at Radix IoT

          R 2 Replies Last reply Reply Quote 0
          • R
            Ruan 0 @Jared Wiltshire
            last edited by

            @jared-wiltshire Thanks Jared. Will do.

            1 Reply Last reply Reply Quote 0
            • R
              Ruan 0 @Jared Wiltshire
              last edited by

              @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?

              R 1 Reply Last reply Reply Quote 0
              • R
                Ruan 0 @Ruan 0
                last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • First post
                  Last post