- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
11-17-2014 08:16 AM - last edited on 10-07-2015 12:40 PM by kathleen_jo
When using "//" in the inline JS code boxes, such as in a Set Data extension, or jQuery OnHandler, the JS minimization breaks.
In order to use "//" in the javascript string it needs to be written like the following in order to get the version to save.
location.protocol + "\/\/" + location.hostname+ location.pathname + "?pg=one"
11-17-2014 09:08 AM - last edited on 10-07-2015 12:41 PM by kathleen_jo
Hi,
That certainly shouldn't be the case as long as the forward-slashes are in quotes, Javascript will treat it as text. If they aren't in quotes, Javascript will treat it as the "comment" command.
If you are still having trouble with this, please could you email support-emea@tealium.comwith your account/profile and we'll take a look to see what's going on.
Many thanks
Steve Lake
11-17-2014 11:01 AM
11-17-2014 11:53 AM
Copyright All Rights Reserved © 2008-2023