Skip to content

Instantly share code, notes, and snippets.

@adamkittelson
Forked from wycats/compare.js
Created December 2, 2009 23:40
Show Gist options
  • Save adamkittelson/247734 to your computer and use it in GitHub Desktop.
Save adamkittelson/247734 to your computer and use it in GitHub Desktop.
// prototype
new Ajax.Request("/your/mom", onSuccess: function(response) { $("lightbox_content").update(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