Re: submitting a form without a submit button ajax-style

2009-02-12 Thread mitch gorman
Musachy Barroso wrote: > 2.1.6 is GA :) > DOH! hadn't checked in a while, obviously... - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: submitting a form without a submit button ajax-style

2009-02-11 Thread Dave Newton
mitch gorman wrote: i have looked at the docs and drooled over the bind tag quite a bit... unfortunately, we're staying with the GA release, leaving me in 2.0.x land. bind would've taken care of *so* many of the little gotchas i've run into... is there any ETA for a GA v2.1.x (or, if yo

Re: submitting a form without a submit button ajax-style

2009-02-11 Thread Musachy Barroso
2.1.6 is GA :) musachy On Wed, Feb 11, 2009 at 3:35 PM, mitch gorman wrote: > Musachy Barroso wrote: >> What you are looking for is the "bind" tag. Check: >> >> http://struts.apache.org/2.x/docs/bind.html >> >> in your example: >> >> >> >> > id="statusCheckbox"/> >> >> > showLoading

Re: submitting a form without a submit button ajax-style

2009-02-11 Thread mitch gorman
Musachy Barroso wrote: > What you are looking for is the "bind" tag. Check: > > http://struts.apache.org/2.x/docs/bind.html > > in your example: > > > > id="statusCheckbox"/> > > showLoadingText="false" formId="myStatusForm"/> > > Look at the docs, the "bind" tag can do a few other t

Re: submitting a form without a submit button ajax-style

2009-02-11 Thread Musachy Barroso
What you are looking for is the "bind" tag. Check: http://struts.apache.org/2.x/docs/bind.html in your example: Look at the docs, the "bind" tag can do a few other tricks. musachy On Tue, Feb 10, 2009 at 9:52 AM, ulf n wrote: > > Hi! all > > I'm trying to find a way to submit

Re: submitting a form without a submit button ajax-style

2009-02-11 Thread mitch gorman
Felipe Fraga wrote: > Hello, > > Using Struts 2 built-in dojo, you could just: > > function submitForm(namespace, action, formName, targetDivName) { > var theForm = dojo.byId( formName ); > //remove initial slash > var theUrl = namespace.substring(1,namespace.length) + "/" + actio

RE: submitting a form without a submit button ajax-style

2009-02-11 Thread ulf n
thanks a bunch! I'll try it out :) cheers, Ulf > Date: Wed, 11 Feb 2009 17:51:56 + > Subject: Re: submitting a form without a submit button ajax-style > From: felipefr...@gmail.com > To: user@struts.apache.org > > Hello, > > Using Struts 2 built-in dojo,

Re: submitting a form without a submit button ajax-style

2009-02-11 Thread Musachy Barroso
Ulf> Date: Wed, 11 Feb 2009 08:37:06 -0500> From: mgor...@shadowtv.biz> To: > user@struts.apache.org> Subject: Re: submitting a form without a submit > button ajax-style> > ulf n wrote:> > the Form:> >> > action="MyAction"

Re: submitting a form without a submit button ajax-style

2009-02-11 Thread Felipe Fraga
Hello, Using Struts 2 built-in dojo, you could just: function submitForm(namespace, action, formName, targetDivName) { var theForm = dojo.byId( formName ); //remove initial slash var theUrl = namespace.substring(1,namespace.length) + "/" + action + ".action"; dojo.

Re: submitting a form without a submit button ajax-style

2009-02-11 Thread mitch gorman
ulf n wrote: > Thanks for all the input on this one! > > alas the form.submit(), causes a reload of the page :( > doh! okay, so the issue is, you need the 'targets=""' attribute, but unfortunately for you, s:select doesn't have that bad boy. what i think you'll need to do, to get ar

RE: submitting a form without a submit button ajax-style

2009-02-11 Thread ulf n
Thanks for all the input on this one! alas the form.submit(), causes a reload of the page :( thanks, Ulf> Date: Wed, 11 Feb 2009 08:37:06 -0500> From: mgor...@shadowtv.biz> To: user@struts.apache.org> Subject: Re: submitting a form without a submit button ajax-style> > u

Re: submitting a form without a submit button ajax-style

2009-02-11 Thread mitch gorman
ulf n wrote: > the Form: > > > >onclick="javascript:someHowSubmitTheFormWithoutReload();"> > > the modified form: the javascript: function submitForm(id) { var form = document.getElementById(id); form.submit(); }

Re: submitting a form without a submit button ajax-style

2009-02-10 Thread Wes Wannemacher
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, > Sonn

Re: submitting a form without a submit button ajax-style

2009-02-10 Thread Sonny Gill
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 wrote: > > Hi! all > > I'