• Resolved Radovan

    (@radovand)


    Hi,

    I am inserting a script into an HTML field (Field Type: HTML content), but it is not displayed.
    For example the scripts below doesn’t work:

    <script language="javascript" type="text/javascript"
                src="https://curs-valutar.facturi-online.ro/script_valutar.js"></script>

    Only the iframe script works (like this one):

    <iframe style="width: 200px; height: 95px;" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" src="https://www.cursbnr.ro/insert/cursvalutar.php?w=200&b=f7f7f7&bl=dcdcdc&ttc=0a6eab&tc=000000&diff=1&ron=1&cb=1"></iframe>

    How can I make the first script work?

    Thanks.

    Radovan D.

    • This topic was modified 2 years, 7 months ago by Radovan.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @radovand

    Thank you very much for using our plugin.

    The script file you want to use calls the document.write method. But this file is hosted in an external domain, violating the security rules of browsers:

    >>> Failed to execute ‘write’ on ‘Document’: It isn’t possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.

    Best regards.

    • This reply was modified 2 years, 7 months ago by codepeople.
    Thread Starter Radovan

    (@radovand)

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Script into “Field Type: HTML content” not working’ is closed to new replies.