Skip to content

Instantly share code, notes, and snippets.

@jish
Forked from wycats/compare.js
Created December 3, 2009 18:41
Show Gist options
  • Save jish/248415 to your computer and use it in GitHub Desktop.
Save jish/248415 to your computer and use it in GitHub Desktop.
// prototype
new Ajax.Request("/your/mom", onSuccess: function(response) { $("lightbox_content").innerHTML = response.responseJSON.contents })
new Ajax.Updater("lightbox_content", "/your/mom");
// 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