Why UI? Why Not?
Tuesday, November 27th, 2007I took some time over the long weekend to hunker down and get familiar with YUI, and re-familiar with javascript. I’m a dork. I know. But, i have to admit it’s been a while since i sat down and did something educational for myself.
Anyway, something to note about YUI is that, while incredibly powerful, it’s terribly documented. I mean, do i pass an id string or a reference to the html element? the examples are a mix/blur of both usages. Also, for those using the animation stuff, opacity is a value between 0 and 1, not 0 and 100. and you might also have to use a “from” attribute. oh, and you might also have to pre-initialize the opacity to match your “from”.
you see, i really don’t know cause i ended up shotgunning it cause,well, i spent one day setting up all the webservices i needed for this little app i’m building, and then the next four days trying to figure out how to mofo fade a damn li in and out.
also, one thing i have yet to figure out is javascript blocking/sleeping/waiting. i have an array that i want to iterate through and append li elements in a ul. the problem is that i want to append these elements over x amount of time, maybe, i dunno, one per second. however, i can’t seem to figure out how to sleep in javascript. anyone?

