I have a page with a List of Clients, and next to it a form with Client Details. The Clients in the list are links to the detail.
When someone changes a Client's Details, a hidden image 'Modified.gif' is made visible. If a user clicks on another Client in the list - having forgotten to Submit - a JS function asks them if they want to save changes.
This works AOK on my pc (WAMP) but it doesn't do the Submit after the confirm() in the production environment (LAMP).
The functions involved are:
Does anyone have any suggestion on what's wrong, or how I might fix it?
Max Hugen
Australia
When someone changes a Client's Details, a hidden image 'Modified.gif' is made visible. If a user clicks on another Client in the list - having forgotten to Submit - a JS function asks them if they want to save changes.
This works AOK on my pc (WAMP) but it doesn't do the Submit after the confirm() in the production environment (LAMP).
The functions involved are:
Code:
function SetModified() {
document.getElementById("Modified").style.visibility="visible";
}
function ClearModified() {
document.getElementById("Modified").style.visibility="hidden";
}
function CheckModified() {
if (document.getElementById("Modified").style.visibility == "visible") {
if (confirm("The record has been modified. Save it?")) {
document.getElementById("ClientDetail").submit();
}
}
}
<form id="ClientDetail" name="ClientDetail" action="Client.php?PID=1898128264" method="post">
Does anyone have any suggestion on what's wrong, or how I might fix it?
Max Hugen
Australia