RE: OT, ajax form submission

2007-10-01 Thread Henry Park
...') } }); Thanks, Henry Date: Mon, 1 Oct 2007 00:24:44 -0400 From: [EMAIL PROTECTED] To: user@struts.apache.org Subject: Re: OT, ajax form submission I will second Zarar's opinion here, if all you need is to make XHRs (no fancy widgets, etc. etc), then Prototype is an excellent choice. Of course

Re: OT, ajax form submission

2007-10-01 Thread Randy Jonasz
Hi Henry, Just add the following: postBody: Form.serialize(yourFormId), to your request. On 10/1/07, Henry Park [EMAIL PROTECTED] wrote: new Ajax.Request('Login!show.action', { method:'post', postBody: Form.serialize(yourFormId), onSuccess:

RE: OT, ajax form submission

2007-10-01 Thread Henry Park
Thank you Randy, that worked out great. -Henry -Original Message- From: Randy Jonasz [mailto:[EMAIL PROTECTED] Sent: Monday, October 01, 2007 9:40 AM To: Struts Users Mailing List Subject: Re: OT, ajax form submission Hi Henry, Just add the following: postBody: Form.serialize

Re: OT, ajax form submission

2007-09-30 Thread Musachy Barroso
I will second Zarar's opinion here, if all you need is to make XHRs (no fancy widgets, etc. etc), then Prototype is an excellent choice. Of course there are another 2e100 ajax frameworks to choose from :) musachy On 9/29/07, Zarar Siddiqi [EMAIL PROTECTED] wrote: Well, just because it

Re: OT, ajax form submission

2007-09-29 Thread Oleg Mikheev
Zarar Siddiqi wrote: I really recommend using something like Prototype to do your Ajax stuff. There's no need to reinvent the wheel and introduce countless Struts2 incorporates DoJo, so there's not much sense adding another Ajax framework

Re: OT, ajax form submission

2007-09-29 Thread Zarar Siddiqi
Well, just because it incorporates Dojo doesn't mean you have to use it and are forbidden from trying something better. By default dojo.js isn't dumped into your JSP/Freemarker pages so it's not like it's ever-present for him to use and could get in the way. In all my Struts apps I use

Re: OT, ajax form submission

2007-09-28 Thread Oleg Mikheev
Henry Park wrote: I could not get the packaged struts2 ajax implementation to work, so I am trying to go at it with plain javascript. I have Struts2 ajax working fine. What was the problem? - To unsubscribe, e-mail: [EMAIL

Re: OT, ajax form submission

2007-09-28 Thread Zarar Siddiqi
I really recommend using something like Prototype to do your Ajax stuff. There's no need to reinvent the wheel and introduce countless bugs in the process, Prototype is tested for all relevant browsers and it'll take you 10 minutes to do what you're trying to do if you use it:

OT, ajax form submission

2007-09-27 Thread Henry Park
I could not get the packaged struts2 ajax implementation to work, so I am trying to go at it with plain javascript. A problem that I am having is that whenever I submit the form, all of my form fields keep getting appended over and over. If I click submit enough, it causes an overflow error.

RE: OT, ajax form submission

2007-09-27 Thread Henry Park
PROTECTED] To: user@struts.apache.org Subject: OT, ajax form submission Date: Thu, 27 Sep 2007 14:19:37 -0700I could not get the packaged struts2 ajax implementation to work, so I am trying to go at it with plain javascript. A problem that I am having is that whenever I submit the form

Re: OT, ajax form submission

2007-09-27 Thread Dave Newton
The first thing I noticed was that your onclick handler attribute doesn't return false; after executing your Ajax method; perhaps it's doing both the Ajax submit and a regular one (easily verifiable)? It might be less traumatic to just figure out what's wrong with the built-in Ajax, though :/