Skip to content

Instantly share code, notes, and snippets.

@AeroNotix
Created April 22, 2012 11:49
Show Gist options
  • Select an option

  • Save AeroNotix/2463797 to your computer and use it in GitHub Desktop.

Select an option

Save AeroNotix/2463797 to your computer and use it in GitHub Desktop.
$.ajax({
url: "/ajax/",
data: formData,
dataType: "json",
success: function (data) {
if (data.success === true) {
$("#calendar-entry").fadeToggle("slow", function() {
$("#calendar-entry").html(data.calendar);
});
$("#calendar-entry").fadeToggle("slow");
} else {
alert(data.error);
}
}
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment