On Tuesday 10 February 2009 10:52:33 Sonny Gill wrote: > If using Prototype, you can do it using the Form object. > See http://www.prototypejs.org/api/form/request > > Similarly, Dojo or whatever other library you use should have a way of > submitting the form by an Ajax request. > > Cheers, > Sonny > > On Tue, Feb 10, 2009 at 10:52 PM, ulf n <ulf...@hotmail.com> wrote: > > Hi! all > > > > I'm trying to find a way to submit a form ajax-style without a submit > > button (Without a page reload). TIA > > Ulf >
If you're a JQuery fan, I have an app setup for my upcoming book here - http://code.google.com/p/struts2inpractice/source/browse/#svn/trunk/ch04ex01 It's the ch04ex01 example app. It's Struts2 + Conventions + JQuery + JSON + Spring + JPA/Hibernate + HSQLDB. It's sort of a rewrite of Musachy's app available here - http://struts.apache.org/2.x/docs/struts-2-spring-2-jpa-ajax.html The lack of source comments is not due to my poor coding skills, but because it's part of the publishers' standards. It's pretty straightforward, if you're already somewhat familiar with S2/Spring/JQuery/etc. -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org