...') }
});
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
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:
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
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
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
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
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
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:
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.
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
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 :/
11 matches
Mail list logo