Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var doc = new XMLHttpRequest(); doc.open("POST",DataBase.ipAddress()+":"+DataBase.port()+"/Dvr/AddRecordSchedule?StartTime="+showTimeAdder.text+ "&ChanId="+ChanId, true);
- doc.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded')
- doc.onreadystatechange = function() {
- if (doc.readyState == doc.DONE) {
- console.log(Title +" is Recording");
- }
- if (doc.status == 200, doc.readyState == 4) {
- var resp = doc.responseXML
- console.log("Doc XML response ready")
- }
- else console.log("hmmm?")
- }
- doc.send();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement