Thanks! David Pollak wrote: > > > On Mon, Oct 26, 2009 at 9:27 PM, Charles F. Munat <[email protected] > <mailto:[email protected]>> wrote: > > > I have an ExtJS form that it failing in IE7 Standards mode (works fine > on IE8 or in quirks mode on IE7). I don't want to force quirks mode on > all browsers or serve the form improperly. I read that inserting a > comment between the XML processing tag and the DOCTYPE declaration will > force IE7 to quirks mode and leave all other browsers alone. > > > The String for the DocType is generated in: > > object ResponseInfo { > var docType: PartialFunction[Req, Box[String]] = { > case _ if S.skipDocType => Empty > case _ if S.getDocType._1 => S.getDocType._2 > case _ => Full(DocType.xhtmlTransitional) > } > } > > You can update the PartialFunction to test for IE7 and emit something like: > case _ if S.req.map(_.isIE7) == Full(true) => > Full("myIEthingyhere\n"+DocType.xhtmlTransitional) > > > > > Anyone know an easy way to do this in Lift? I know we can respond to > individual browsers (though I can't seem to find that on the list), but > how to insert that comment? Or is there a better way? > > Chas. > > > > > > > -- > Lift, the simply functional web framework http://liftweb.net > Beginning Scala http://www.apress.com/book/view/1430219890 > Follow me: http://twitter.com/dpp > Surf the harmonics > > >
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
