Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Javascript Coldfusion and validator W3C

New Here ,
Dec 17, 2009 Dec 17, 2009

Hello,

I would like to know if there is a solution to make the Coldfusion's generated code valid against the W3C validator.

My coldfusion is generating this code :

<script type="text/javascript">
_cf_loadingtexthtml="<img alt=' ' src='/CFIDE/scripts/ajax/resources/cf/images/loading.gif'/>";
_cf_contextpath="";
_cf_ajaxscriptsrc="/CFIDE/scripts/ajax";
_cf_jsonprefix='//';
_cf_clientid='17B936E2E7D6FC75BAC5A2FDE889CE65';
</script>

The part wich is the problem is the img tag. The better would be to nest it in a CDATA tag.

Does someone have a solution to solve this?

Thank you 😃

807
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 17, 2009 Dec 17, 2009

Hi,

I think you might be using ColdFusion 8 (or) 8.01.

The new version 'ColdFusion 9" has the ability to wrap these cf generated code in <![CDATA blocks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 17, 2009 Dec 17, 2009

Hello and thank you for your answer.

Is there an alternative solution? Coldfusion 9 isn t free

Thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 17, 2009 Dec 17, 2009
LATEST

Unfortunately the answer is "No"..

http://www.terrenceryan.com/blog/post.cfm/more_xhtml_compliance_issues_in_coldfusion_8

(Go through the "comments")

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources