Yeah for sure I knew this was the error but as when I was doing curl I the text/html response did not corrolate with the error... Lift was a bit too clever for me then! Haha.
Cheers, Tim On 05/05/2009 23:30, "Derek Chen-Becker" <[email protected]> wrote: > Just to complete the discussion, the error you got ( > NS_ERROR_DOM_NOT_SUPPORTED_ERR) indicates that the page is in XHTML compliance > mode in FireFox, but is trying to use the Document.write(...) JavaScript > function, which only exists in HTML. I'm really looking forward to the day > when Google maps supports <canvas />. > > Derek > > On Tue, May 5, 2009 at 2:51 PM, Timothy Perrett <[email protected]> > wrote: >> >> LOL!! Thanks David, after 2 years of Lift its nice to know there is >> still stuff to catch me out :-D >> >> You rock. >> >> Cheers, Tim >> >> On May 5, 9:36 pm, David Pollak <[email protected]> wrote: >>> > Tim, >>> > >>> > You instincts are correct. Lift is serving the page as XHTML. The mime >>> > type when Firefox is detected is application/xhtml+xml >>> > >>> > If you want to disable service as XHTML, set: >>> > >>> > LiftRules.useXhtmlMimeType = false >>> > >>> > Thanks, >>> > >>> > David >>> > >>> > On Tue, May 5, 2009 at 1:04 PM, Timothy Perrett >>> <[email protected]>wrote: >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>>> > > Guys, got a very strange problem with lift serving a google map >>>> > > page.... >>> > >>>> > > I tore things back to the bear metal example from google, and with >>>> > > working code in a static html page served by apache, it works fine. I >>>> > > then paste it into a lift served page, and I get a JS error in the FF >>>> > > console: >>> > >>>> > > NS_ERROR_DOM_NOT_SUPPORTED_ERR >>> > >>>> > > This appears to be a really common error that has a bunch of things >>>> > > associated with it. I checked the content type being served by jetty: >>> > >>>> > > ~ timperrett$ curl -Ihttp://127.0.0.1:8080/demo >>>> <http://127.0.0.1:8080/demo> >>>> > > HTTP/1.1 <http://127.0.0.1:8080/demo%0AHTTP/1.1> 200 OK >>>> > > Expires: Tue, 5 May 2009 19:48:20 UTC >>>> > > Set-Cookie: JSESSIONID=1uhrovsz1f9iq;Path=/ >>>> > > Content-Length: 2661 >>>> > > Content-Type: text/html >>>> > > Cache-Control: no-cache; private; no-store; must-revalidate; max- >>>> > > stale=0; post-check=0; pre-check=0; max-age=0 >>>> > > Pragma: no-cache >>>> > > X-Lift-Version: 1.1-M1 >>> > >>>> > > I even took the code that lift was generating and pasted that into a >>>> > > static html file and served by apache it works! So, the code is right, >>>> > > but when lift serves it nothing works... >>> > >>>> > > What on earth could be causing this? >>> > >>>> > > Cheers, Tim >>> > >>> > -- >>> > Lift, the simply functional web frameworkhttp://liftweb.net >>> <http://liftweb.net> >>> > Beginning Scalahttp://www.apress.com/book/view/1430219890 >>> <http://www.apress.com/book/view/1430219890> >>> > Follow me:http://twitter.com/dpp >>> > Git some:http://github.com/dpp >> > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
