This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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'} }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
system.use("com.joyent.Sammy"); | |
function resources( name , options) { | |
// var db = new DebugConsole(); | |
// system.console.log(db.processMessage(this.name)); | |
name = name.toLowerCase(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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'}]); | |
}); |
NewerOlder