Skip navigation
Currently Being Moderated

EmulateIE7 meta tag and cfform incompatibility

Aug 4, 2009 4:36 PM

We have a large number of sites which do not work correctly with IE8 because of compatibility issues.  We find that this removes the problem IF and ONLY if it is the first tag after the <head> tag:

 

   <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >

 

The problem is that a huge number of these pages also use <cfform> which plugs <script> lines immediately after the <head> tag so that the meta tag is ignored.

 

How do I stop ColdFusion from doing this without editing a huge number of files to make them work using <form> instead of <cfform>!?

 

Is there a way of to edit the template that is inserted so that it inserts the <meta> tag along with the <script> tags?

 

This is extremely critical to our operation and right now it looks like a huge reprogramming task.

 

I'd like a more rational solution if anyone has it!

 
Replies
  • Currently Being Moderated
    Aug 4, 2009 6:35 PM   in reply to Al Baker

    I could be wrong, but I do not think there is a non-hackish solution.  AFAIK, the default html forms are generated directly from a java class. So there is not template to modify. I believe only format="xml" uses a kind of 'template' in the form of xsl files in the C:\ColdFusion8\wwwroot\CFIDE\scripts\xsl directory.

     

    Assuming you have tried other methods without success, you might be able to trick CF by setting the header inside a custom tag. Not a great solution, but it should work.

     

    http://www.coldfusionjedi.com/index.cfm/2007/9/3/ColdFusion-custom-tag -for-layout-example

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points