Created
August 24, 2019 21:09
-
-
Save zacknawrocki/df768067d2942fabfaae8539c5560c1c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Adding meeting section | |
var data0 = {"id":id, "title":title, "start_time":start_time, "end_time":end_time, "userlist":userlist}; | |
var data = JSON.stringify(data0); | |
$.ajax({ | |
type:"POST", | |
url:'http://............', | |
data:data, | |
dataType: "text", | |
contentType: "application/json; charset=UTF-8", | |
success:function(){ | |
console.log("submitted") | |
}, | |
error:function(jqXHR,textStatus,errorThrown) | |
{alert('Exception:'+errorThrown);} | |
}); | |
// Removing meeting section | |
var data0 = {"id":id}; | |
var data = JSON.stringify(data0); | |
$.ajax({ | |
type:"POST", | |
url:'http://..........', | |
data:data, | |
dataType: "text", | |
contentType: "application/json; charset=UTF-8", | |
success:function(){ | |
console.log("deleted") | |
}, | |
error:function(jqXHR,textStatus,errorThrown) | |
{alert('Exception:'+errorThrown);} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment