Skip to content

Instantly share code, notes, and snippets.

@wycats
Created December 2, 2009 23:13
Show Gist options
  • Save wycats/247701 to your computer and use it in GitHub Desktop.
Save wycats/247701 to your computer and use it in GitHub Desktop.
// prototype
new Ajax.Request("/your/mom", onSuccess: function(response) { $("lightbox_content").innerHTML = response.responseJSON.contents })
// jquery
$.getJSON("/your/mom", function(json) { $("#lightbox_content").html(json.contents) })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment