Hello and thanks for taking your time to read my question.
I have the script below and it works 100% on Localhost but when I upload the site to my server it dont seem to run at all.
Can someone tell me whats wrong or how to make a solution that works.
<script>
window.addEventListener("beforeunload", function (e) {
$.ajax({
url: '/Video/StreamClose/',
type: 'POST',
dataType: 'json',
data: {
userid: userID,
streamid: null
},
//contentType: 'application/json; charset=utf-8',
success: function (data) {
console.log(data);
},
error: function (error) {
console.log(error);
}
});
var confirmationMessage = "Your stream is ...
Go to the complete details ...