Skip to content

Instantly share code, notes, and snippets.

// 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) })
// XUI
x$(window).xhrjson( "/your/mom", {map:{'contents':'#lightbox_content'} });
system.use("com.joyent.Sammy");
function resources( name , options) {
// var db = new DebugConsole();
// system.console.log(db.processMessage(this.name));
name = name.toLowerCase();
// Using XUI FX - Tween
x$('#add').click(function(){
// This fails, blue fires before red is finished
x$('#baz').tween({ background:'red' }).tween({ background:'blue'});
// This also doesn't work as expected.
x$('#baz').tween([{ background:'red' },{ background:'blue'}]);
});