[Lift] Re: buttons and textbox

2009-05-03 Thread Meredith Gregory
Lifted, When i look at the button behavior using firebug, this is the following error i see. F891109765602PT1 is not defined onclick(click clientX=950, clientY=152)1tbfBLwe...6bg%3D%3D (line 2) (F891109765602PT1, lift_ajaxHand...whatField).attr(value), null, null)); It would appear that however

[Lift] Re: buttons and textbox

2009-05-03 Thread marius d.
Greg, ajaxCall returns a tuple (String, JsExp) ... so when you use it try something like: (onclick - ajaxCall(JsRaw($('#whatField').attr('value')), s = updateWhat(s))._2) Br's, Marius On May 3, 9:00 am, Meredith Gregory lgreg.mered...@gmail.com wrote: Lifted, When i look at the button

[Lift] Re: buttons and textbox

2009-05-03 Thread marius d.
First of all instead of: (onclick - ajaxCall(JsRaw($('#whatField').attr('value')), s = updateWhat(s))._2) I would use: (onclick - ajaxCall(ValById(whatField), s = updateWhat(s))._2) That should work I think in your case you are setting the value attribute of the text field to

[Lift] Re: buttons and textbox

2009-05-03 Thread Meredith Gregory
Marius, Thanks! That works much better. One final question, if i wanted to have the CR/LF event on the textbox have the same behavior as the button, what would be the simplest approach? Currently, i have { text(evalStr(), (updateWhat _)) % (size - 60) % (id - whatField) } which always reverts