cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Pym" <>
Subject RE: Submit Problem
Date Wed, 14 May 2003 00:54:59 GMT
2 options:
Client Side
This can be fixed with some javascript.
Change your submit button to a button with a javascript action.
When it clicks have it call a javascript function.
In the called javascript function, disable the submit button then submit
the form.
Server Side
Change your backend code to check for duplicates upon insert.
Best method?
To do both would be preferable.
If I was in your situation.
I would do the Client side fix because that saves some lookup resources
on the server.
-----Original Message-----
From: Nitin [] 
Sent: Tuesday, 13 May 2003 9:08 PM
Subject: Submit Problem
Hi All,
  IF I press three times submit on a form.It is inserting three records.
Any suggestions so that  only one record will insert.

View raw message