<ul id="my_list"><li>Insert here</li></ul>
def renderMyList = {val cssSel = "li *" #> Db.getMyListcssSel(<li></li>)}def doAJAX() = {"type=submit" #>SHtml.ajaxButton("AJAX button",() => JqJsCmds.AppendHtml("my_list", renderMyList)) andThen SHtml.makeFormsAjax}
--
--
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 received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thank you for the links, those should be parts of Lift tutorial. Your blog is excellent.
Could you correct me on how my approach works? Here is my guess.- Retrieve data and build up a chunk of html from that data on server side and send it to client for another processing; appendHtml, SetHtml, etc.
Benefit of KO approach- Less overhead on the server and network.- Easier to work with json on client side, especially with more complex html structure.