RE: Submit, ajax, targets and action

2008-03-01 Thread Matthew Seaborn
Thanks for the advice. How is this function supposed to be used, is it called from onclick in the s:submit tag? -Original Message- From: Richard Sayre [mailto:[EMAIL PROTECTED] Sent: 26 February 2008 18:42 To: Struts Users Mailing List Subject: Re: Submit, ajax, targets and action

RE: Submit, ajax, targets and action

2008-03-01 Thread Matthew Seaborn
- From: Matthew Seaborn Sent: 01 March 2008 15:31 To: 'Struts Users Mailing List' Subject: RE: Submit, ajax, targets and action Thanks for the advice. How is this function supposed to be used, is it called from onclick in the s:submit tag? -Original Message- From: Richard Sayre

Re: Submit, ajax, targets and action

2008-03-01 Thread Martin Gainty
user@struts.apache.org Sent: Saturday, March 01, 2008 2:48 PM Subject: RE: Submit, ajax, targets and action Okay, got all this work; works fine. Cheers, Richard. In the end it looked like function submitFunctionA() { preventCache: true, load:function(type, data, evt) { $(#formId).html(data

RE: Submit, ajax, targets and action

2008-02-27 Thread Matthew Seaborn
This simply appears to make the click on the submit button perform an unparameterised GET on the defined URL. -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: 26 February 2008 18:42 To: Struts Users Mailing List Subject: Re: Submit, ajax, targets and action Just

Submit, ajax, targets and action

2008-02-26 Thread Matthew Seaborn
I have a form which contains a number of different submit buttons, each using the action attribute on the submit tag to control which action this called, this work fine. I want this form to load dynamically into a DIV on another page and then using the AJAX theme and targets attributes on the

Re: Submit, ajax, targets and action

2008-02-26 Thread Richard Sayre
If I understand you correctly, You could write you own submit function(s) that does its own ajax with dojo function submitFunctionA() { var kw = { url:'s:url action=myAction/', load:function(type, data, evt) { //up to you what

Re: Submit, ajax, targets and action

2008-02-26 Thread Richard Sayre
Sorry this posted too early... I updated the code so it submits the form fields with the ajax request: let me know if it helps. Rich function submitFunctionA() { var kw = { url:'s:url action=myAction/', load:function(type, data, evt) {

Re: Submit, ajax, targets and action

2008-02-26 Thread Musachy Barroso
Just set the href on each submit to the url that it needs to submit to, and it should work. regards musachy On Tue, Feb 26, 2008 at 1:39 PM, Richard Sayre [EMAIL PROTECTED] wrote: If I understand you correctly, You could write you own submit function(s) that does its own ajax with dojo