Hi, I was wondering if it is possible to send multiple variables through an ajaxCall. As an example, this is the code I have right now:
def inputs = {
".inputfield [onkeyup]" #> SHtml.ajaxCall(JsRaw("this.value"),
s => { ... }
)
}
but the class .inputfield will apply to a number of input boxes. I want to take the id of the .inputfield target as well, but it seems I can only take "this.value" OR "
this.id".
What I mean is that I want to do something like:
def inputs = {
".inputfield [onkeyup]" #> SHtml.ajaxCall(JsRaw("this.value", "
this.id"),
(s, t) => { ... }
)
}
This doesn't work of course because ajaxCall's second parameter is How would I go about doing something like this in lift?
I've tried sending "this.value+
this.id" but because
this.id is an unknown value I wouldn't know how to parse for it.
Thanks a lot, I appreciate any help.
Joe