http://www.faqts.com/knowledge_base/view.phtml/aid/20424


google: enter submit form prevent



From: "Raghu.Ramakrishnan" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: How to Avoid the Form getting Submitted when User clicks the enter button on the Keyboard
Date: Thu, 14 Aug 2003 09:39:03 -0500




Hi,

I would be obliged if some one could help me with this :

1) How to Avoid the Form getting Submitted when User clicks the enter
button on the Keyboard using the Struts Frame work
   or Javascript.

Raghu


-----Original Message----- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 9:36 AM To: 'Struts Users Mailing List' Subject: RE: Vertical Checkboxes..


Yes, it works with JavaScript - I use an onclick method. I was just wondering if there is a way to do it in struts taglibs.

I actually was thinking of doing it a different way: have an onclick
method to submit the page as the user clicks on the link, at the same
time put all of the checked parameters in a hashmap and pass them over.

Any other ideas?

-----Original Message-----
From: Adam Levine [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 14, 2003 10:32 AM
To: [EMAIL PROTECTED]
Subject: Re: Vertical Checkboxes..


How would you do this in CGI? or any other HTML/HTTP manipulator? You really can't.

If you want to submit information using a link (a href), that
information
must already be built when the link is rendered.  This is a standard GET

format (ie,    a
href="http://foo.com/submit.cgi?param1=blah&param2=boo";).

If you want to submit data that a user has manipulated, ie from a form,
you
must use a FORM structure and use a submit button so that you end up
with a
POST.

If you insist on using a link to submit entries a user has manipulated,
you're going to have to use JavaScript and essentially do a form
post/submit

when a link is clicked.

hth.


From: "Alawadhi, Mona" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Subject: Vertical Checkboxes.. Date: Thu, 14 Aug 2003 08:52:02 -0500

Hello Everyone,

I have a situation where I'm displaying fields in the JSP by iterating
through a Vector of an object (let's call it A)- in a table format.

At the beginning of each table row (which is a different A object), I
have a checkbox. I set 'Employee ID' to be the value captured if the
checkbox is checked.

How can I capture the values of the checkboxes selected (meaning, all
the employee IDs selected) and have them be as parameters going to
another action through a link (a link, without submitting the page)?

Thank you in advance,

Mona


************************************************************************ **** * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized.

If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on
it, is prohibited and may be unlawful. When addressed to our clients any
opinions or advice contained in this email are subject to the terms and
conditions expressed in the governing KPMG client engagement letter.
************************************************************************
****
*


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


************************************************************************ ***** The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized.

If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on
it, is prohibited and may be unlawful. When addressed to our clients any
opinions or advice contained in this email are subject to the terms and
conditions expressed in
the governing KPMG client engagement letter.
************************************************************************
*****


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to