YUI recommends YUI 3.
YUI 2 has been deprecated since 2011. This site acts as an archive for files and documentation.
A demonstration of basic logging functionality using Logger and LogReader.
CSS:
1 | /* No custom CSS. */ |
view plain | print | ? |
Markup:
1 | <p><a href="#" id="loglink">Click here</a> to log a simple message.</p> |
view plain | print | ? |
JavaScript:
1 | YAHOO.example.Basic = new function() { |
2 | YAHOO.util.Event.addListener(YAHOO.util.Dom.get("loglink"), "click", function(e) { |
3 | YAHOO.util.Event.stopEvent(e); |
4 | YAHOO.log("This is a simple log message."); |
5 | }); |
6 | |
7 | // Put a LogReader on your page |
8 | this.myLogReader = new YAHOO.widget.LogReader(); |
9 | }; |
view plain | print | ? |
You can load the necessary JavaScript and CSS for this example from Yahoo's servers. Click here to load the YUI Dependency Configurator with all of this example's dependencies preconfigured.
Copyright © 2011 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Copyright Policy - Job Openings