Update VisionUnsHSBC.jsp

parent 2cad9309
...@@ -98,18 +98,23 @@ button:hover { ...@@ -98,18 +98,23 @@ button:hover {
<script> <script>
function scheduleSFTP() { function scheduleSFTP() {
// Display "Generating..." message // Display "Generating..." message
document.getElementById("result").innerHTML = "Generating..."; document.getElementById("result").innerHTML = "Processing....";
// Create an XMLHttpRequest object // Create an XMLHttpRequest object
var xhttp = new XMLHttpRequest(); var xhttp = new XMLHttpRequest();
// Define the function to handle the response // Define the function to handle the response
xhttp.onreadystatechange = function() { xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) { if (this.readyState == 4) {
// Update the HTML content with the response if (this.status == 200) {
document.getElementById("result").innerHTML = this.responseText; // 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 // 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