Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save zacknawrocki/df768067d2942fabfaae8539c5560c1c to your computer and use it in GitHub Desktop.
Save zacknawrocki/df768067d2942fabfaae8539c5560c1c to your computer and use it in GitHub Desktop.
// 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