how to hide javascript on page

May's Avatar

May

24 Jan, 2014 02:37 PM

How do I hide the following code so it does not appear as content in the page. thanks for your help.

<script type="text/javascript">// <![CDATA[
var axel = Math.random() + ""; var a = axel * 10000000000000; document.write('<iframe frameborder="0" height="1" src="http://fls.doubleclick.net/activityi;src=2954295;type=mbapr200;cat=mbapr942;ord=' + a + '?" width="1"></iframe>');
// ]]></script>
<noscript><iframe frameborder="0" height="1" src="http://fls.doubleclick.net/activityi;src=2954295;type=mbapr200;cat=mbapr942;ord=1?" width="1"></iframe></noscript><!-- End of DoubleClick Floodlight Tag: Please do not remove -->
  1. 1 Posted by Ryan Griffith on 24 Jan, 2014 02:57 PM

    Ryan Griffith's Avatar

    Hi,

    If you are entering this content within a WYSIWYG, be sure to paste it into the HTML Source editor and not the visual editor; otherwise, the visual editor will encode the special characters and cause the code to appear as plain text on the page.

    Also, I would recommend surrounding this content with #protect code sections (or #START-CODE if you are running a version of Cascade Server older than 7.2) to ensure the content cleanup and validation routines do not modify your code.

    Please let me know if you have any questions.

    Thanks!

  2. 2 Posted by May on 24 Jan, 2014 03:21 PM

    May's Avatar

    It works now. Thanks Ryan and have a good one!

  3. 3 Posted by Ryan Griffith on 24 Jan, 2014 07:08 PM

    Ryan Griffith's Avatar

    Thank you for following up, I am glad to hear that did the trick.

    Have a great day!

  4. Ryan Griffith closed this discussion on 24 Jan, 2014 07:08 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac