The thing that doesn't work, IIRC, is that application/xhtml+xml doesn't allow document.write(). The Google code (foolishly, IMO) depends on write() to write script elements to the page. For some things you can work around it by simply removing the use of write and just adding the script elements directly. That's how I've worked around it on my sites.
Chas. David Pollak wrote: > > > On Fri, May 29, 2009 at 1:23 AM, Narayanaswamy, Mohan > <[email protected] > <mailto:[email protected]>> wrote: > > > I will try to send one, But Google API was failing while trying to > load banner. > > > I suspect the problem is that Lift renders pages as strict XHTML and > sets the mime type of responses to be application/xhtml+xml This > imposes much stricter requirements on dynamically generated HTML. > Google Maps does not work in this mode. In Boot.scala try adding this > line: > > LiftRules.useXhtmlMimeType = false > > And see if things work. > > Thanks, > > David > > > Google just released those api's. > > Mohan > > -----Original Message----- > From: [email protected] <mailto:[email protected]> > [mailto:[email protected] <mailto:[email protected]>] > On Behalf Of Narayanaswamy, Mohan > Sent: 28 May 2009 00:32 > To: Lift > Subject: [Lift] Re: How to disable jQuery from lift application? > > > As per my limited knowledge, Google javascript API fails. Below API, > I am using it to transfer "English to Tamil" tranliteration. > > Webpage error details > > Message: Unexpected call to method or property access. > Line: 22 > Char: 388 > Code: 0 > URI: > > http://www.google.com/uds/api/elements/1.0/1aac8bdeb1f85e7c5035029a61994691/transliteration.I.js > > > Mohan > > On May 27, 8:21 pm, David Pollak <[email protected] > <mailto:[email protected]>> > wrote: > > Mohan, > > > > Marius answered your question, but I'm curious... how does jQuery > > conflict with the google library? What kind of errors are you > seeing? > > > > Thanks, > > > > David > > > > On Tue, May 26, 2009 at 5:50 PM, KaniniPazham < > > > > > > > > > > > > [email protected] > <mailto:[email protected]>> wrote: > > > > > I am using "Archetype basic" and in my form, I am trying to > > > integrate with Google Transliteration API. So in one of the page, I > > > would like to disable jQuery as it conflicts with google > Transliteration API. > > > > > I found following function is generated and added automatically, > > > they are not in my template. > > > > > </div><script type="text/javascript"> // <![CDATA[ > > > jQuery(document).ready(function() {lift_successRegisterGC();}); var > > > lift_page = 'F27052369736502T'; // ]]> </script></body> > > > > > How could I disable generating such a automatic jQuery script? > > > How could I disable jQuery for whole LiftApplication? > > > How could I disable jQuery for only one page? > > > > > Extremely sorry if the above questions are simple and stupid. > Except > > > Core-java, everything is new to me. > > > > > Mohan > > > > -- > > 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- Hide quoted text - > > > > - Show quoted text - > > > > > > ============================================================================== > Please access the attached hyperlink for an important electronic > communications disclaimer: > > http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html > > ============================================================================== > > > > > > > -- > Lift, the simply functional web framework http://liftweb.net > Beginning Scala 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 -~----------~----~----~----~------~----~------~--~---
