Guest User

Untitled

a guest
Apr 25th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. // prototype
  2. new Ajax.Request("/your/mom", onSuccess: function(response) { $("lightbox_content").innerHTML = response.responseJSON.contents })
  3. new Ajax.Updater("lightbox_content", "/your/mom");
  4.  
  5. // jquery
  6. $.getJSON("/your/mom", function(json) { $("#lightbox_content").html(json.contents) })
Add Comment
Please, Sign In to add comment