Category Archives: YUI Mish Mash

Creating a FIXED element with re-size and scroll detection using YUI dom and event

We have all see them and some of us love them. It’s those elements that seem to float on the page like hovering little angels. Ok enough with the sappy crap…down to business. So you need to create a browser independent simple script to position an element on a page. I put together a simple [...]

Override alert() with a YUI Dialog

You know and I know and everyone knows the alert boxes generated by the browsers are OLD-SCHOOL and look like garbage. Well using YUI you can easily change that by just including a little code in you page. Simply add the code below to the bottom of your page just before the end body tag [...]

Using the YUI Loader and Yahoo’s CDN Rollup

Using the YUI Loader and the script below will allow you to implement the YUI framework within your application with out downloading and installing the YUI framework to your server. var loader = new YAHOO.util.YUILoader({ require: ["get","dom","event"], loadOptional: true, onSuccess: function() { YAHOO.util.Event.onDOMReady(init); }, timeout: 10000, combine: true }); loader.insert(); function init(){ console.warn(‘YUI Loaded’); } [...]