Sorry, I didn't replay earlier, but it turns out that the "operation is not supported code: 9" error is related to the fact that the default Google Analytics snippet uses document.write(). It turns out that XHTML does not support document.write(), which causes Firefox to chock.
Ultimately, I replaced the default Google Analytics snippet with this one: <script src="http://www.google-analytics.com/ga.js" type="text/javascript" /> <script type="text/javascript"> //<![CDATA[ try { var pageTracker = _gat._getTracker("UA-4384857-1"); pageTracker._trackPageview(); } catch(err) {} //]]> </script> A full write up of my experiences with Google Analytics and Lift can be found here: http://www.the-xavi.com/articles/operation-is-not-supported-code-9 ~Xavi On Tue, Jul 7, 2009 at 4:34 PM, Xavi Ramirez<xavi....@gmail.com> wrote: > Thanks! I ran into this exact problem. Is there any way to get rid > of it? Is there a <lift:production> tag? > > Thanks, > Xavi > > On Tue, Mar 17, 2009 at 5:22 PM, Charles F. Munat<c...@munat.com> wrote: >> >> OK, I have to stop posting this crap when it's 5:30 AM, I've been >> working for 18 hours straight, and my brain is fried. >> >> The problem was that I was looking at it on my development machine, not >> the production server. The Google Analytics code is tied to the URL. If >> the URL is wrong, it doesn't serve the script, so Firebug reports the >> error. I are dumb. >> >> Hopefully, though, my posting this will save some other person a hassle >> and a little public embarrassment. >> >> Chas. >> >> Derek Chen-Becker wrote: >>> Can you send the beginning of the XHTML output, up to and including the >>> GA script? >>> >>> Derek >>> >>> On Tue, Mar 17, 2009 at 6:31 AM, Charles F. Munat <c...@munat.com >>> <mailto:c...@munat.com>> wrote: >>> >>> >>> Is anyone else using Google Analytics? I am getting this strange >>> JavaScript error: >>> >>> operation is not supported" code: "9 >>> var pageTracker = _gat._getTracker("UA-5774043-2"); >>> >>> The Google scripts are supposed to be placed right before the closing >>> body tag, but Lift inserts its own script in there. I can't imagine how >>> that would make a difference, but it is the only thing different from >>> what Google recommends. >>> >>> Also, the analytics are not working. >>> >>> Any ideas? >>> >>> Chas. >>> >>> >>> >>> >>> > >> >> >> >> > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@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 -~----------~----~----~----~------~----~------~--~---