Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 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) })
Add Comment
Please, Sign In to add comment