cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Pym" <andrew....@presenceofit.com.au>
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.
 
 
Regards
 
Andrew
 
 
-----Original Message-----
From: Nitin [mailto:nitinm@networkprograms.com] 
Sent: Tuesday, 13 May 2003 9:08 PM
To: cocoon-users@xml.apache.org
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.
Thanks
nittin

Mime
View raw message