That's what I ended up doing. Any particular reason why JS events can't be "passed through"? Granted, it's a "nice to have", but it could save ex-RoR (and ex-ASP.NET) developers a few WTFs. :-)
On Sep 14, 11:46 am, David Pollak <feeder.of.the.be...@gmail.com> wrote: > On Tue, Sep 8, 2009 at 7:02 PM, DMB <combust...@gmail.com> wrote: > > > Hi, folks, > > > I'm moving one of my old ruby based apps over to Scala/Lift to learn > > Lift better, and here's one thing I was not able to find how to do. > > > Some forms in the old app have onsubmit event on the <form> tag which > > combines / pre-validates things in the form, puts the output into a > > hidden field and wipes some of the fields prior to submitting. > > > I can't seem to find a way to hook up a JS event to a Lift form > > defined like so: > > > <lift:IndexView.show form="post"> > > <lift:IndexView.show form="post" id="foobar"> ... > > Then hook your onsubmit up to the <form element with the id "foobar". > > Does that work? > > > > > If I add onsubmit event to this tag, it simply gets ignored. How do I > > do this in Lift? > > > Also, Ruby on Rails conveniently appends an integer value at the end > > of script and CSS urls, which comes in handy when you want to maximize > > caching but don't want to risk serving the old scripts and stylesheets > > to the users. Is there a corresponding mechanism for this in Lift? > > > Thank you. > > -- > Lift, the simply functional web frameworkhttp://liftweb.net > Beginning Scalahttp://www.apress.com/book/view/1430219890 > Follow me:http://twitter.com/dpp > Git some:http://github.com/dpp --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---