Announcement

Collapse
No announcement yet.

V8 Buglet. Variables within commented JavaScript don't show in Design Preview.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    V8 Buglet. Variables within commented JavaScript don't show in Design Preview.

    If I put this code into a Layout
    Code:
    <script type="text/javascript">
    <!--
    document.write('[' + '<actinic:variable name="ACTCSSFONTFAMILY" />' + ']');
    // -->
    </script>
    Then the variable doesn't display on the Design Preview (all you see is []). The Content Preview is OK.

    If I use
    Code:
    <script type="text/javascript">
    document.write('[' + '<actinic:variable name="ACTCSSFONTFAMILY" />' + ']');
    </script>
    Then all is well.

    Solution - don't comment out the JavaScript code. However that may have some issues for ancient browsers.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    #2
    Thanks Norman - I've passed this on to the Development team.

    Comment

    Working...
    X