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
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: func
){ alert('Something went wrong...') }
});
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
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 incorpo
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 Prototype
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
-
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:
http://www.prototyp
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
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 :/
By appended over and over, I mean in the querystring... so the request would
look like this:
NameOfAction!list.action?1=1&someField1=blah&someField2=blah&someField3=blah&someField4=blah&someField5=blah&someField1=blah&someField2=blah&someField3=blah&someField4=blah&someField5=blah&someField1=bl
10 matches
Mail list logo