CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Easy way to add a "Delete Confirmation" yes/no box ?

Print topic Send  topic

Author Message
David A. Lee
Posted: 07/27/2001, 7:52 PM

Is there any easy way to add a confirmation "Do you want to really delete
this record?"
without having to make multiple pages for this ?
I'm using Perl + Templates on apache server (bsdi)

--------------------------------------------------
David A. Lee
Dal Enterprises Inc.
dave@calldei.com
http://www.calldei.com

Shell
Posted: 07/28/2001, 9:46 AM

You can add a javascript delete confirmation to the page - I saw an example
in the event calendar i believe - but I know there is an example of the code
in the test sites.

Shell

Alexey Alexapolsky
Posted: 07/30/2001, 3:03 AM

CC uses this code for such task :

<SCRIPT Language="JavaScript">
if (document.forms["Members"])
document.Members.onsubmit=delconf;
function delconf() {
if (document.Members.FormAction.value == 'delete')
return confirm('Delete record?');
}
</SCRIPT>

Place it in Footer section of your form (actually you don't have to - CC
does it for you if you check "Allow delete" box)

--
Alex
Ceritfied CodeCharge Developer
Develop database-connected web sites
without coding: http://www.codecharge.com
ASP, ASP.NET, PHP, JSP, Perl, ColdFusion

Shell <nospam@please.dont> wrote in message
news:9juq9d$lkd$1@news.codecharge.com...
> You can add a javascript delete confirmation to the page - I saw an
example
> in the event calendar i believe - but I know there is an example of the
code
> in the test sites.
>
> Shell
>
>

Jeffrey A. Stuart
Posted: 08/01/2001, 1:36 PM

Alex, it does? What version? I'm using beta 4 and I don't believe I've seen
this happen before.

On Mon, 30 Jul 2001 13:01:52 +0300, "Alexey Alexapolsky"
<alexa@codecharge.com> wrote:

>CC uses this code for such task :
>
> <SCRIPT Language="JavaScript">
>if (document.forms["Members"])
>document.Members.onsubmit=delconf;
>function delconf() {
>if (document.Members.FormAction.value == 'delete')
> return confirm('Delete record?');
>}
></SCRIPT>
>
>Place it in Footer section of your form (actually you don't have to - CC
>does it for you if you check "Allow delete" box)

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.