Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
javascript and cdata
nico
if i've built an html page with javascript throughout and I decide to turn this page into a tpl, will putting cdata tags around the html and javascript ensure it runs fine? I'm mostly concerned that the cdata tags don't mess up my javascript.
Thanks,
nico
Find more posts tagged with
Comments
Migrateduser
If you turn the page into a .tpl, the only way to get it to run properly is to put all of the code within CDATA tags. If the code is not, it will throw XML parsing errors. The CDATA will not mess up the HTML or JavaScript unless you forget to close a CDATA tag somewhere, then XML errors will be thrown again. Hope that helps.