Hey guys,
Two parter coming up...
A) So calling a js function through lift is simple enough using
JE.Call. Is there a way to do the reverse? In a js function (in a
separate .js file) call access code (classes, methods, variables) from
my scala files? I hope this question makes sense. I've been
searching around and can't seem to figure it out.
B) I have a js function that listens for a click on a DOM element and
part of the response is to update a Shtml.ajaxSelect dropdown. This
works fine, but while the Select box does get updated, the ajax
function is not being executed.
I'll explain anything more if necessary. I hope someone can shed some
light on this for me. I appreciate any advice. I also wasn't sure if
I should post this as two posts or not, but their basically related,
so i figured one should be good.
Thanks guys!
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
You can see a working example using jsoncall on this post
http://blog.fmpwizard.com/back-button-and-bookmark-meet-lift-comet-revi
There is even a live app that shows how it works.
Hope it helps
Diego
Sent from my android cell
For B, you may find reactive web useful. See this other post that shows something similar to what you want.
http://blog.fmpwizard.com/scala-reactive-web-lift-great-user-experience
Diego
Sent from my android cell