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 <[email protected]>wrote:

>  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 ",pos)
>     Alert("Success!")
>   }
>
>   def update(in:NodeSeq):NodeSeq = Script(JsRaw(
>     """loc.onUpdate = function(lat, lon) {
>       """+SHtml.jsonCall(JsObj("lat" -> JsVar("lat"), "lon" ->
> JsVar("lon")), updatePosition _)._2.toJsCmd+""";
>     }"""
>   ))
>
> And here's what I get, after an alert box pops up telling me that the
> server can't be contacted:
>
> INFO - Service request (GET) /images/ajax-loader.gif took 29 Milliseconds
> WARN - Request for /ajax_request/F297873351275ZM3/ failed For input string:
> "(-~9)7"
> java.lang.NumberFormatException: For input string: "(-~9)7"
>     at
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>
>     at java.lang.Long.parseLong(Long.java:403)
>     at java.lang.Long.parseLong(Long.java:461)
>     at scala.runtime.RichString.toLong(RichString.scala:214)
>     at
> net.liftweb.util.JSONParser$$anonfun$anInt$4$$anonfun$apply$67.apply(JSON.scala:100)
>
>     at
> net.liftweb.util.JSONParser$$anonfun$anInt$4$$anonfun$apply$67.apply(JSON.scala:100)
>
> ..
>
> It goes on for quite a bit more, which I can happily send if needed. And it
> never hits my println. I think I even get it with just the Alert() call, and
> there's nothing apparent on the console to show what's being posted.
>
>
> >
>


-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to