Derek,
Here is my complete head method:
def head = headscript type=text/javascript src={/ +
LiftRules.resourceServerPath + /jlift.js} /
{Script(json.jsCmd)}/head
Also, why do you use variable binding in your case pattern (j @ JsonCmd
(processForm...). You don't refer to the
Thanks. Good point on the variable binding. I think that at some point that
code did use the var, but no longer. I'll remove it.
On Thu, Sep 17, 2009 at 11:20 AM, glenn gl...@exmbly.com wrote:
Derek,
Here is my complete head method:
def head = headscript type=text/javascript src={/ +
Marius,
You are right. I added script type=text/javascript src={/ +
LiftRules.resourceServerPath + /jlift.js} / to
my head method, and everything works great. The issue here, is that
the Lift Book example doesn't mention
this.
Glenn
On Sep 15, 9:07 pm, marius d. marius.dan...@gmail.com wrote:
I'll fix the book right now, but could you please send your complete head
method so that I make sure to include the correct code?
Derek
On Wed, Sep 16, 2009 at 9:30 AM, glenn gl...@exmbly.com wrote:
Marius,
You are right. I added script type=text/javascript src={/ +
The apply method should be getting called because the SHtml.json method
should register it as the handler for the form. Would you mind sending me
the code you have and I'll take a look at it? I'm pretty sure this code was
working at one point, but perhaps something has changed.
Derek
On Mon, Sep
Maybe this would help ?
http://wiki.liftweb.net/index.php/HowTo_use_JSON_forms
This definitely worked but I haven't tested in a while. Also the lift
book example was tested before putting it in the book. If there is
indeed a lift problem I'd be happy to correct it ASAP.
Br's,
Marius
On Sep
Derek,
Here is the template. Just as in the book.
lift:surround with=default at=content
lift:JSONForm.head /
lift:JSONForm.show
input type=text name=name /
br /
input type=text name=value /
br /
input type=radio name=vehicle value=Bike /
input type=radio name=vehicle value=Car /
input
Do you see any errors in FireBug ? ... Do see the Ajax request being
send out in FireBug?
On Sep 15, 5:49 pm, glenn gl...@exmbly.com wrote:
Derek,
Here is the template. Just as in the book.
lift:surround with=default at=content
lift:JSONForm.head /
lift:JSONForm.show
input type=text
Where is the head function in your code ?
Here is an example:
def head = headscript type=text/javascript src=/classpath/
jlift.js / {Script(json.jsCmd)}/head
Br's,
Marius
On Sep 15, 5:55 pm, marius d. marius.dan...@gmail.com wrote:
Do you see any errors in FireBug ? ... Do see the Ajax
Right ... the head method should not have the js script but did you
include the jlift.js script in your default template?
I'll build an example this week (when I'll find some time for it) and
see if I'm running into the same problems as you are. If you somehow
manage to fix it please let me
Actually, the JsonHandler in the example gets called, but not the apply
(in:Any) method, as
that is never called in the book example. Also, the handler seems to
be called twice with every submit.
Why is that?
Glenn
On Sep 14, 8:08 am, glenn gl...@exmbly.com wrote:
This may be a question for
11 matches
Mail list logo