1 Reply Latest reply on Apr 12, 2011 12:54 PM by ilssac

    Problems with Site W3C compliance

    Miramar19800680

      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=

        • 1. Re: Problems with Site W3C compliance
          ilssac Level 5

          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.