I set the XhtmlMimeType to false, and it can works now! ### LiftRules.useXhtmlMimeType = false ###
Thanks very much! Cheers, Neil On Dec 2, 9:03 pm, Arthur <avand...@gmail.com> wrote: > Hi Neil > > document.write() isn't allowed for "real" xml files like xhtml+xml > where an xml parser checks for well-formedness of the xml. You should > be able to use things like appendChild(). > > Regards > > Arthur > > On 2 Dez., 13:42, "Neil.Lv" <anim...@gmail.com> wrote: > > > Hi all, > > > How to fix the bug in firefox that application/xhtml+xml doesn't > > have the write() method ? > > > The document object created in Firefox when the mime type is > > application/xhtml+xml does not have the write() method. > > > I have a script that need to use the document.write method in the > > lift page. > > > ### > > <script charset="utf-8" language="JavaScript" src="http://......php"/> > > ### > > > I try that create a test.html ( /src/main/webapp/test.html ) and the > > use the iframe to embed the test.html. > > > ### > > <iframe frameborder="1" scrolling="yes" style="height: 5px; width: > > 5px;" src="test.html" name="lift"></iframe> > > ### > > > It works fine in the IE, but not in the Firefox. > > > Does anybody know that how to resolve this problem in the lift ? > > > Cheers, > > Neil -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.