Update VisionUnsHSBC.jsp

parent 2cad9309
......@@ -98,18 +98,23 @@ button:hover {
<script>
<script>
function scheduleSFTP() {
// Display "Generating..." message
document.getElementById("result").innerHTML = "Generating...";
document.getElementById("result").innerHTML = "Processing....";
// Create an XMLHttpRequest object
var xhttp = new XMLHttpRequest();
// Define the function to handle the response
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
// Update the HTML content with the response
document.getElementById("result").innerHTML = this.responseText;
if (this.readyState == 4) {
if (this.status == 200) {
// Update the HTML content with the response
document.getElementById("result").innerHTML = "Processing complete: " + this.responseText;
} else {
// Handle errors or show an appropriate message
document.getElementById("result").innerHTML = "Error occurred during processing.";
}
}
};
// Open a POST request to the server-side servlet
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment