Advertisement
Guest User

bobweaver

a guest
Jun 7th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. var doc = new XMLHttpRequest(); doc.open("POST",DataBase.ipAddress()+":"+DataBase.port()+"/Dvr/AddRecordSchedule?StartTime="+showTimeAdder.text+ "&ChanId="+ChanId, true);
  2. doc.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded')
  3. doc.onreadystatechange = function() {
  4. if (doc.readyState == doc.DONE) {
  5. console.log(Title +" is Recording");
  6. }
  7. if (doc.status == 200, doc.readyState == 4) {
  8. var resp = doc.responseXML
  9. console.log("Doc XML response ready")
  10. }
  11. else console.log("hmmm?")
  12. }
  13. doc.send();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement