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
|
 |
 |
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.
|
 |
 |
|