CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 prompting for save before unloading the page

Print topic Send  topic

Author Message
foremorecoast

Posts: 2
Posted: 10/26/2007, 6:55 AM

Hi! I am very new to codecharge. I have a template based asp page which contains list records, edit records in the same template. when editing records I want to prompt user with save option if they forget to hit save button how could i do that? also once they navigate i want to remote the url parameter with "ED" etc. how could i do that. I want to get more advanced tips and techniques that tells me more about event handing and custom code writing. are there any examples other than SDK?

please help
View profile  Send private message
foremorecoast

Posts: 2
Posted: 10/28/2007, 10:10 PM

Hi again

I managed to get the prompting bit working but how do i get the previous value of the textbox so that i could check whether the value has been changed currently i am using following script.

<script type="text/JavaScript">

function nocheck() {
changeform = nothing
}

function nothing(){
}

function changeform() {
if (checkform())
{
return true
} else {
var confirmed = confirm("You have changed the quantity of an item.\nClick OK to save your changes.");
if (confirmed == true) {
document.EditAsset.submit();
return false
} else {
return true
}
return false
}
}

function checkform() {
if (document.EditAsset.Description1.value != 8)
{
return false
}
return true
}

</script>

but the number '8' should actually be the previous value of Description1 text box please help.
View profile  Send private message

Add new topic Subscribe to topic   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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