malar a nathan 3.May.07 12:01 AM a Web browser General6.0.3All Platforms
Hi all,
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
document.forms[0].submit()
and in edit button as
var f = document.forms[0];
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.