[Lift] Firefox error in returning a CreatedResponse

2009-11-18 Thread glenn
I'm returning  Full(CreatedResponse(form, text/xhtml )) in
LiftRules.DispatchPF, where form is just a MetaMapper.toForm node,
which works fine in IE but fails in Firefox with the following error.

XML or text declaration not at start of entity
[Break on this error] div xmlns=http://www.w3.org/1999/xhtml;?xml
version=1.0 encoding=UTF-8? (line 1)
uncaught exception: [Exception... Component returned failure code:
0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMNSHTMLElement.innerHTML]
nsresult: 0x80004003 (NS_ERROR_INVALID_POINTER) location: JS
frame :: http://localhost:8080/classpath/jquery.js :: anonymous ::
line 251 data: no]


Anyone have an idea why this happening?

Glenn





--

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.




Re: [Lift] Firefox error in returning a CreatedResponse

2009-11-18 Thread Ross Mellgren
Try turning off the XHTML mime type by putting

LiftRules.useXhtmlMimeType = false

into your Boot and see if it goes away?

-Ross

On Nov 18, 2009, at 2:21 PM, glenn wrote:

 I'm returning  Full(CreatedResponse(form, text/xhtml )) in
 LiftRules.DispatchPF, where form is just a MetaMapper.toForm node,
 which works fine in IE but fails in Firefox with the following error.

 XML or text declaration not at start of entity
 [Break on this error] div xmlns=http://www.w3.org/1999/xhtml;?xml
 version=1.0 encoding=UTF-8? (line 1)
 uncaught exception: [Exception... Component returned failure code:
 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMNSHTMLElement.innerHTML]
 nsresult: 0x80004003 (NS_ERROR_INVALID_POINTER) location: JS
 frame :: http://localhost:8080/classpath/jquery.js :: anonymous ::
 line 251 data: no]


 Anyone have an idea why this happening?

 Glenn





 --

 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 
 .



--

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.