Questions tagged [yui3]

YUI 3 is Yahoo!'s next-generation JavaScript and CSS library. The library includes the core components, a full suite of utilities, the Widget Infrastructure, a growing collection of widgets, CSS resources, and tools. In addition there is a gallery of community contributed components that integrate with the library.

YUI3 home page.

300 questions
16
votes
3 answers

YUI 3 programmatically fire change event

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…
atp
  • 30,132
  • 47
  • 125
  • 187
11
votes
4 answers

Comparison of yui and yui3

Is YUI3 ready mature enough? What are its advantages and disadvantages compared to YUI?
flybywire
  • 261,858
  • 191
  • 397
  • 503
10
votes
1 answer

Incorporation of YUI 3 in rails

I was wondering if any effort has been made towards integration of YUI3 with rails asset pipeline. By integration, I don't just mean a couple of helpers for including the library but rather a complete integration of YUI module loader. I'll…
lorefnon
  • 12,875
  • 6
  • 61
  • 93
9
votes
1 answer

Progressive enhancement with YUI3 (Y.App) and Symfony2

We actually work with the Symfony 2 PHP framework and Twig as a template engine. We think that we could avoid code duplication for the View layer and benefit from progressive enhancement (p-jax). Current status: PJAX doesn't handle partial updates…
Benjamin
  • 382
  • 4
  • 12
8
votes
1 answer

Migrate YUI 2 to YUI 3

What is the migration path for upgrading the Yahoo JS & CSS libraries from version 2 to version 3? Specifically: CSS & fonts, button, TabView. Any pointers to further information about issues encountered, tips to make it easier, etc would be…
Edward Q. Bridges
  • 16,712
  • 8
  • 35
  • 42
8
votes
4 answers

How do I get the select box values in YUI 3?

In YUI 3 I have a node that is my select box: Y.get('#regionSelect'); How do I get the
atp
  • 30,132
  • 47
  • 125
  • 187
7
votes
1 answer

Yahoo (YUI) vs Google (Closure) framework for testing on browsers and node.js

It seems that YUI is very focused on providing all the same code for both browsers and node.js. That's very powerful because now I can use the same tests on both ends and don't have to rewrite/relearn anything. Is google also focusing on node.js…
ajsie
  • 77,632
  • 106
  • 276
  • 381
7
votes
8 answers

Is there a jQuery alternative for building faster web sites

We are about to commence a redesign of our site and are exploring all options in improving performance. The site is fairly heavy in javascript loaded adverts, therefore we need to be really lean with the javascript we use. Do any of you have any…
Ad Taylor
  • 2,775
  • 5
  • 27
  • 32
6
votes
1 answer

YUI3: Whats the best way to read Height of an element?

I want to increase height of an element by X pixels by writing a YUI3 script. Whats the best way ? if I use 'Node' module and read the height as node.getStyle("height"); The results of FF3 shows a string "100px" where as for IE8 its just blank.…
Eastern Monk
  • 6,395
  • 8
  • 46
  • 61
6
votes
1 answer

YUI 3: How to get native DOM element wrapped inside Node?

I've used this simple technique to get a native DOM element in jQuery: var el = $('#myid'); var native = el[0]; //or el.get(0); How can I do this in YUI 3? For example, I want to use getElementsByName DOM method, which is not supported by YUI 3.
Dan
  • 55,715
  • 40
  • 116
  • 154
6
votes
1 answer

Why does yui DOM-create method have a handler for the class named 'yui3-big-dummy'?

In the YUI documentation; http://yuilibrary.com/yui/docs/api/files/dom_js_dom-create.js.html if (nodes.length === 1) { // return single node, breaking parentNode ref from "fragment" ret = nodes[0].parentNode.removeChild(nodes[0]); …
xiaohao
  • 272
  • 1
  • 7
5
votes
4 answers

Closure Library or YUI 3

I'm architecting an enterprise web application using python, django. My final decision to make is which javascript library to use. I'm thinking about using Google's closure library or YUI3. Most of the development, I've used jQuery.I can code fast…
CIF
  • 1,754
  • 2
  • 18
  • 30
5
votes
3 answers

in YUI3 is it possible to attach a single handler to multiple events?

so is something like this possible? Y.one("input.units").on("keyup change", function(e){ ... }); the jquery equivalent is $("input.units").bind("keyup change", function(e){ ... });
delimited
  • 263
  • 1
  • 6
5
votes
1 answer

Memory leak with DataTable and DataSource with polling

I have a DataTable which is populated from a remote JSON DataSource: var dataSource = new Y.DataSource.Get({ source: url }); dataSource.plug(Y.Plugin.DataSourceJSONSchema, { schema: { resultListLocator: "results", resultFields: …
SimonC
  • 6,590
  • 1
  • 23
  • 40
5
votes
3 answers

YUI3 - Onclick event handling for links having same classes

Issue: YUI3 - Onclick event handling for links having same classes We have few links in the page having same class. When I click on one of the links there are some different actions to be taken based on the which link was clicked, For e.g.
Neo
  • 5,070
  • 10
  • 46
  • 65
1
2 3
19 20