Does YUI have a way to tell if a script does not exist with the Get.script? The onFailure method doesn't seem to fire when the script doesn't exist. Is this...
... Most browsers don't indicate there is was failure if the response code was a 404. If this is a problem for you, you can add logic to the onSuccess method...
I'm building a website which needs exactly 10px of space between al elements. But I can't find any information about how to manage the vertical spaces between...
Hey erwin_odendaal, ... The margins between the b's are the negative-margins difference, by default 1em, which is 13px if you're using YUI Fonts as well. This ...
I am creating a simple animation chain made up of 2 part, the first animation setup opacity to 0 to fade something out, then I want to wait 10 seconds and fade...
Hey Zac, You should not use an string in the setTimeout function, because the browser will try to use EVAL to evaluate that string, which means that you will...
... Hi Zac, When a code snippet is passed as the first argument to setTimeout, it is executed in the window scope. So you are correct, now that there is a ...
Thanks for the advice, and thanks to Caridy too for a really speedy reply. I can see the advantage of using this syntax with regards to scope, I'm building a...
Hey Zac, There are few issues related with the on-demand loading process for modular applications. 1. if two different modules try to use the loader...
I joined a company recently which has a substantial YUI2-based code base as the senior JS developer. I'm thinking that a gradual switchover to YUI3 is the most...
... Hi Emmett, To unwrap a node, use Y.Node.getDOMNode(): var yui_node = Y.get('#foo'); var raw_node = Y.Node.getDOMNode(yui_node); The function is listed in...
I'm just not grokking the problem here that is keeping my widget from pulling the <p> node into its 'paragraph' attribute on instantiation using the...
Hi, The HTML_PARSER is used to mine values from inside a content box which is already on the page. If you're looking for the <p>Hi</p>, you'd need to wrap it...
I'm still getting my head around the use function to say I want to write some code that uses component x. I can see why I want to wrap my stuff up into a...
Zac, The use function takes multiple arguements, with the last one being the callback function. YUI().use('node', 'io-base', function(Y){ ... Do something with...
Hello, I am trying to do a simple file upload like this, assuming that we have a file input in the form, and that the server-side 'uploader.cgi' script does...
It just seems like returning the result array would be so much more useful in any situation. Why does Array.each return the YUI instance? Thanks, Andy...
The ANT-based component build tool that we use to build YUI components from their source code is now publicly available on GitHub. This is a component build...
Hi, What is the math used to calculate font sizes for YUI: /* ** ** Font sizes: Pixel to percent conversion: ** 10px = 77% ** 11px = 85% ** 12px = 93% **...
... Y.each delegates to the appropriate each function, and returning the instance helps to provide some level of chaining support. It also seems a bit...
I was naively expecting to be able to access the various parts of the 'margin' css class through getStyle, but this doesn't work for me. ... "-35px 0pt 0pt...