Update biz_v.html
Browse files- biz_v.html +4 -4
biz_v.html
CHANGED
|
@@ -10,7 +10,7 @@
|
|
| 10 |
<label for="tokenInput">Enter Token:</label>
|
| 11 |
<input type="text" id="tokenInput" placeholder="Your Token">
|
| 12 |
<button id="sendRequestButton">Send Request</button>
|
| 13 |
-
<
|
| 14 |
|
| 15 |
<script>
|
| 16 |
document.getElementById('sendRequestButton').addEventListener('click', function() {
|
|
@@ -24,13 +24,13 @@
|
|
| 24 |
},
|
| 25 |
body: 'token=' + encodeURIComponent(token)
|
| 26 |
})
|
| 27 |
-
.then(response => response.
|
| 28 |
.then(data => {
|
| 29 |
-
document.getElementById('responseArea').
|
| 30 |
})
|
| 31 |
.catch(error => {
|
| 32 |
console.error('Error:', error);
|
| 33 |
-
document.getElementById('responseArea').
|
| 34 |
});
|
| 35 |
});
|
| 36 |
</script>
|
|
|
|
| 10 |
<label for="tokenInput">Enter Token:</label>
|
| 11 |
<input type="text" id="tokenInput" placeholder="Your Token">
|
| 12 |
<button id="sendRequestButton">Send Request</button>
|
| 13 |
+
<div id="responseArea"></div>
|
| 14 |
|
| 15 |
<script>
|
| 16 |
document.getElementById('sendRequestButton').addEventListener('click', function() {
|
|
|
|
| 24 |
},
|
| 25 |
body: 'token=' + encodeURIComponent(token)
|
| 26 |
})
|
| 27 |
+
.then(response => response.text())
|
| 28 |
.then(data => {
|
| 29 |
+
document.getElementById('responseArea').innerHTML = data;
|
| 30 |
})
|
| 31 |
.catch(error => {
|
| 32 |
console.error('Error:', error);
|
| 33 |
+
document.getElementById('responseArea').innerHTML = 'Error: ' + error.message;
|
| 34 |
});
|
| 35 |
});
|
| 36 |
</script>
|