Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

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