hack with yui
DESCRIPTION
YUI talk for IITD HackUTRANSCRIPT
Jai SanthoshFrontend Engineer, Hackerhttp://twitter.com/jaisanth
HackwithYUI
“The browser is the most futile deployment environment…”
- Douglas Crockford
Don’t reinvent the wheel
Use tools which are already available
A comprehensive suite of tools to help you code like a pro!!
http://yuilibrary.com/
YUI Library
• CORE
• UTILITIES
• CSS
• WIDGETS
http://yuilibrary.com/yui/docs/guides/
Code
<script src="http://yui.yahooapis.com/3.4.1/build/yui/yui-min.js"></script>
Using Modules
YUI().use('node', 'event', function(Y) {
var demo = Y.one('#demo'); //Get id="demo"demo.on("click", function (e) {
//Do stuff when #demo is clicked});
});
EXAMPLES
http://hackyourworld.org/hackuiitd/yui_yql_example.html