-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Is YUI3 ready mature enough? What are its advantages and disadvantes vs YUI
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Consider the following code.
var overlay = new Y.Overlay({
id:'tooltip-tag',
bodyContent:"Loading.....",
xy:[e.target.getX(),e.target.getY()+30]
});
The overlay gets the id as given in attributes. But what if I want to…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'd like to call a simple YUI3 function from within a JavaScript function.
Here is some code that does what I want in a very verbose way:
function changeContent (message) {
YUI().use("node", function(Y) {
Y.all('#content-div').setContent(message);
});
}
Is there a better way to…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
jQuery has handy .height() and .width() utilities to get calculated displayed size of a DOM element. It also has .position() to get coordinates. In YUI3 Node, I see that there are .getX(), .getY() and .getXY() utilities to get position, but I do not see anything for size (or can't look).
What's a…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi all,
I was wondering how to programmatically fire a change event with YUI3 -- I added a change listener to one select box node:
Y.get('#mynode').on('change', function(e) {
Alert(“changed me”);
});
and somewhere else in the script want to fire that event. It works, of course, when a user changes…
>>> More