[Lift] Re: Automatic background AJAX: best way to do it?

2009-08-02 Thread David Pollak
Nolan, I've fixed two defects related to this. Please give it an hour or so until Hudson finishes building and do an mvn -U clean compile and run your code again. Thanks, David On Sat, Aug 1, 2009 at 10:21 AM, Nolan Darilek wrote: > On 08/01/2009 11:53 AM, David Pollak wrote: > > you need t

[Lift] Re: Automatic background AJAX: best way to do it?

2009-08-01 Thread Nolan Darilek
On 08/01/2009 11:53 AM, David Pollak wrote: > you need to replace ajaxCall with jsonCall... that will Stringify your > JavaScript object. > Ack, OK, that's what I had when I got the huge backtrace. :) So back to where I started, with: def updatePosition(pos:Any):JsCmd = { println("Got "

[Lift] Re: Automatic background AJAX: best way to do it?

2009-08-01 Thread David Pollak
On Sat, Aug 1, 2009 at 9:28 AM, Nolan Darilek wrote: > > OK, having more issues with this. > > First I tried changing to jsonCall. This results in a huge backtrace, > which I don't have at hand ATM but which seems to indicate a parse error > in the input string. Strange, as the input seems rather

[Lift] Re: Automatic background AJAX: best way to do it?

2009-08-01 Thread Nolan Darilek
OK, having more issues with this. First I tried changing to jsonCall. This results in a huge backtrace, which I don't have at hand ATM but which seems to indicate a parse error in the input string. Strange, as the input seems rather straight-forward, but I thought I'd ensure that I'm not handi

[Lift] Re: Automatic background AJAX: best way to do it?

2009-08-01 Thread Nolan Darilek
On 07/31/2009 12:27 PM, David Pollak wrote: > > loc.onUpdate = function(lat, lon) {ft is XHTML. The above > will not work in XHTML because the code will be escaped into XML. > > Ah, so it does, just looked at the rendered source. Thanks for the fix, and for the new method. --~--~

[Lift] Re: Automatic background AJAX: best way to do it?

2009-08-01 Thread Nolan Darilek
On 07/30/2009 11:26 PM, Naftoli Gugenheim wrote: > Does doubling the brace escape it? Sure does, thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@goo

[Lift] Re: Automatic background AJAX: best way to do it?

2009-07-31 Thread David Pollak
On Wed, Jul 29, 2009 at 11:45 PM, Nolan Darilek wrote: > > On 07/28/2009 07:28 PM, David Pollak wrote: > > I'd do the REST API thing. The mechanisms that Lift has for handling > > API calls from the browser are numerous, but they are associated with > > a session (you can do ajaxCall or a S.build

[Lift] Re: Automatic background AJAX: best way to do it?

2009-07-30 Thread Naftoli Gugenheim
Does doubling the brace escape it? Also you could build the string parts outside of the xml and then embed them. - Nolan Darilek wrote: On 07/28/2009 07:28 PM, David Pollak wrote: > I'd do the REST API thing. The mechanisms that Lift has for handling > API

[Lift] Re: Automatic background AJAX: best way to do it?

2009-07-29 Thread Nolan Darilek
On 07/28/2009 07:28 PM, David Pollak wrote: > I'd do the REST API thing. The mechanisms that Lift has for handling > API calls from the browser are numerous, but they are associated with > a session (you can do ajaxCall or a S.buildJsonFunc). Oh cool. When I listened to the podcast interview

[Lift] Re: Automatic background AJAX: best way to do it?

2009-07-28 Thread David Pollak
I'd do the REST API thing. The mechanisms that Lift has for handling API calls from the browser are numerous, but they are associated with a session (you can do ajaxCall or a S.buildJsonFunc). If your client is going to be disconnected, periodically wake up, make an HTTP call on your app and then

[Lift] Re: Automatic background AJAX: best way to do it?

2009-07-28 Thread Peter Robinett
I would do the first option, which I don't see as 'unLifty', but perhaps someone who knows Lift better than I do can comment on your options. Peter Robinett On Jul 28, 10:57 am, "Nolan Darilek" wrote: > I have a project that will use the geolocation API in Firefox 3.5, > Google Gears and other