[Lift] Re: Javascript Commands

2009-10-01 Thread Derek Chen-Becker
If you have a javascript function foo(a, b) where a is a String and b is an integer then you can call that with JE.Call(foo, one, 2) for example. If you wanted to set some variable to the result of the function, you could do: JsCmds.CrVar(myVar, JE.Call(foo, one, 2)) Derek On Wed, Sep 30,

[Lift] Re: Javascript Commands

2009-10-01 Thread sunanda
Thanks Derek. But I get the following errors: found : net.liftweb.http.js.JE.Call required: java.lang.String x= JE.Call(foo,2) ^ C:\J\BrandNET\eclipse_workspace\GridXml_Lift2.0\src\main\scala\net \irisinteractive\lift\grid\snippet\CreateGridConfigTable.scala:47: error: value CrVar is not a

[Lift] Re: Javascript Commands

2009-10-01 Thread Indrajit Raychaudhuri
That should read JsCmds.JsCrVar(...) Cheers, Indrajit On 02/10/09 4:39 AM, sunanda wrote: Thanks Derek. But I get the following errors: found : net.liftweb.http.js.JE.Call required: java.lang.String x= JE.Call(foo,2) ^ C:\J\BrandNET\eclipse_workspace\GridXml_Lift2.0\src\main\scala\net

[Lift] Re: Javascript Commands

2009-10-01 Thread Derek Chen-Becker
Oops, sorry about that. Also, can you show a little more of your code? I'm not sure what you're trying to do with the assignment to x. Derek On Thu, Oct 1, 2009 at 10:18 PM, Indrajit Raychaudhuri indraj...@gmail.comwrote: That should read JsCmds.JsCrVar(...) Cheers, Indrajit On 02/10/09