Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I'm using a textarea field to allow the client to paste javascript into a page.
This works for most code but have a case that is failing.
The code is
<script>/*<![CDATA[*/(function(w,a,b,d,s)
++++Code removed as senstive++++ (window,'ActOn','Beacon',document,'script');ActOn.Beacon.track();/*]]>< / s c r i p t >
but when I try and retrieve the string using "GetPropertyValue
Please note, I've tried shortening the code in case of it being too long but it still strips the end data.
Any thoughts on how to fix it or is this a bug in Umbraco?
thanks, Steve.
I think Umbraco has problems with CDATA in text fields: http://issues.umbraco.org/issue/U4-6091
I believe the inclusion of CDATA in JavaScript is a trick to get search engines to ignore the JavaScript. Can you simply remove the CDATA portion?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Textarea stripping data
Hi,
I'm using a textarea field to allow the client to paste javascript into a page.
This works for most code but have a case that is failing.
The code is
++++Code removed as senstive++++ (window,'ActOn','Beacon',document,'script');ActOn.Beacon.track();/*]]>< / s c r i p t >
but when I try and retrieve the string using "GetPropertyValue
Please note, I've tried shortening the code in case of it being too long but it still strips the end data.
Any thoughts on how to fix it or is this a bug in Umbraco?
thanks, Steve.
I think Umbraco has problems with CDATA in text fields: http://issues.umbraco.org/issue/U4-6091
I believe the inclusion of CDATA in JavaScript is a trick to get search engines to ignore the JavaScript. Can you simply remove the CDATA portion?
is working on a reply...