I'm new to Lift and trying to run a very basic example. The transformations work, but when I click the submit button, nothing happens. No idea why.This is the HTML:<div class="lift:MySnippet.test" form="POST">
<div>START---------------------------------------------------</div>
<div id="name_input"></div>
<input id="testsubmit" type="submit" value="x"></input>
<div>END---------------------------------------------------</div>
</div>This is the snippet:class MySnippet {
def test = {
var itemName = "item name"
"#name_input" #> SHtml.text(itemName, itemName = _) &
"#testsubmit" #>
SHtml.ajaxSubmit("label", () => println("test"))
// SHtml.onSubmitUnit(() => println("test"))
}
}"label" works. But println seems not to be executed.Thanks in advance.--
--
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
class MySnippet {
def test = { render andThen SHtml.makeFormsAjax }
def test = {
var itemName = "item name"
"#name_input" #> SHtml.text(itemName, itemName = _) &
"#testsubmit" #> SHtml.ajaxSubmit("label", () => println("test"))
class MySnippet {
def test = { render andThen SHtml.makeFormsAjax }
def render = { <form class="lift:form.ajax">...</form>