CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 confirmation of delete in codecharge studie

Print topic Send  topic

Author Message
folkerts
Posted: 07/23/2002, 7:24 PM

I wanna use a javascript for a record on delete; it's a submit button, when i add a confirm('some text') on the onclick event it wil submit alway.
when i make it of type button i use
onclick="antw=confirm('some text');
if(antw){document.formname.Delete.Value='Delete';
document.formname.submit();}else{};";

i am doing something wrong but what.

regards.
Drake
Posted: 07/23/2002, 11:48 PM

Try and add a "return false" statement to the 'else' part of the code and see if it works.
folkerts
Posted: 07/24/2002, 12:23 AM

sorry dont work
folkerts
Posted: 07/24/2002, 12:53 AM

tink it was a code error;
for anyone interested add the following code to youre delete button and it wil ask for confirmation.

OnClick="antw=confirm('some text');
if(antw){document.formname.Delete.Value='Delete';document.formname.submit();}else{return false};"
folkerts
Posted: 07/24/2002, 1:45 AM

to make your code more portabel use
onclick="antw=confirm('delete??');
if(antw){return}else{return false};";

   


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.