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

Problems with Site W3C compliance

New Here ,
Apr 12, 2011 Apr 12, 2011

Copy link to clipboard

Copied

Hello Everyone,

We are having a big of compliance issues with some of our sites, which we've traced back to coldfusion automatically inserting script tags in our header.

Little Background.

Running Coldfsion8,0,1,195765
Java 1.6.0_10

The code error we are running into is that it's inserting the following lines into the header, which breaks W3C XHTML Strict Compliance:

Any help would be greatly appreciated.

<head><script type="text/javascript">_cf_loadingtexthtml="<img alt=' ' src='/CFIDE/scripts/ajax/resources/cf/images/loading.gif'/>";

"";

"/CFIDE/scripts/ajax";

'//';

'';</script><script type="text/javascript" src="/CFIDE/scripts/ajax/messages/cfmessage.js"></script>

script type="text/javascript" src="/CFIDE/scripts/ajax/package/cfajax.js"></script>

Richard Laliberte

We have noticed that this seems to be fixed in CF9? We are note a very large company, so we can't afford right now to upgrade to CF9, and we were wondering if there is a hot fix, or even a code fix that can eliminate this error?

<

_cf_clientid=

_cf_jsonprefix=

_cf_ajaxscriptsrc=

_cf_contextpath=

TOPICS
Advanced techniques

Views

303

Translate

Translate

Report

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
Valorous Hero ,
Apr 12, 2011 Apr 12, 2011

Copy link to clipboard

Copied

LATEST

I don't know of any fixes, but there might be one out there.  I would look in places like cflib.org http://www.cflib.org/ and RIAForge http://riaforge.org/.

I also don't know how much work this is worth to you.

But if you can not find a pre-built solution, I can suggest one way you could approach a Solution.

With the Application.cfc OnRequest method, it is possible to capture the output generated by ColdFusion and do some post-processing manipulation before it is returned to the client.  Depending on what is breaking the compliance and how hard it is to convert into a compliant form it would not be too hard to do string manipulation to modify the output text.

Votes

Translate

Translate

Report

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
Documentation