malar a nathan 3.May.07 12:01 AM a Web browser General 6.0.3 All Platforms
I am new to Web application development.
I have a form with 'save' and 'edit' buttons.
In the save button, i have written the code as
and in edit button as
var f = document.forms;
url = window.location.href.toLowerCase();
newURL = url.replace('opendocument','editdocument');
window.location.href = newURL;
Now once if i save the form for the first time,it is getting saved.
Now if i open it again and edit and save it,the document doesnt get saved.But if i edit it again,the changes made during the previous edit is visible.