Questions tagged [yui2]

The YUI Library is a set of utilities and controls from YAHOO!, written with JavaScript and CSS, for building richly interactive web applications. The yui2 tag is for discussions of the version 2 of the library.

47 questions
3
votes
1 answer

How can I find the checked rows in a YUI DataTable?

I'm using a YUI DataTable with a checkbox column like this: var myColumnDefs = [ {key:"check", label:'', formatter:"checkbox"}, {other columns...} ]; How can I iterate over all the rows that have been…
Justin Tanner
  • 14,062
  • 17
  • 82
  • 103
2
votes
1 answer

yui 2 to yui-2-in-3

I am working to change YUI2 code to YUI 2-in-3 form. I need to access Y.YUI2 object(YAHOO object) in my JS codes . I need this object globally because this object is being used in hundreds of places in the JS codes so I want an easier way to access…
code4fun
  • 2,661
  • 9
  • 25
  • 39
2
votes
3 answers

YUI Anim on After event?

There is a way to trigger an event after an animation is done? what's the cose for it? I'm very new with YUI libraries and i'm getting lost.. my cose now is var anim = new Y.Anim({ node: node, duration: 1.0, easing:…
Francesco
  • 24,839
  • 29
  • 105
  • 152
2
votes
2 answers

How to do multiple selectors in YUI

How can i do multiples selectors in yui (yui 2) like in jquery : $('h1, h2, el1, el2, .content, .title').css('color', 'red'); How can this one be written in yui (without doing YAHOO.util.Dom.addClass on each element seperately)
Mouna Cheikhna
  • 38,870
  • 10
  • 48
  • 69
2
votes
0 answers

YUI2 DataTable Allow Cell Contents to 'Bleed' from One Column to Next

Using http://developer.yahoo.com/yui/examples/datatable/dt_basic.html as the base, simply add a new column to the end of the table. Next, resize the title column so that the width of the column is smaller than the width of the contents of the…
Jim
  • 359
  • 2
  • 15
2
votes
1 answer

YUI2 Dialog not hiding dialog markup correctly

With YUI's Dialog widget, it works well except that with large dialogs (think lots of content), a noticable side effect appears in the page... lots of whitespace at the end of the page and a scrollbar. Here's an example: ->…
nym
  • 430
  • 1
  • 8
  • 21
2
votes
2 answers

Super class methods in javascript

I am writing some objects (classes I guess) in javascript. Class B inherits from Class A. Class A has a method called isValid, and class B overrides that method. I am using the YUI extend function to have Class B extend Class A. A =…
Zoidberg
  • 10,137
  • 2
  • 31
  • 53
1
vote
1 answer

Why is my custom module not available after YUILoader.onSuccess event fires?

Trying to write better JavaScript, woohoo! First step for me: YUILoader dependency loader so all of my custom code is available to use at a reliable point in time. My current environment: YUI (2.8.1) library path: C:\wamp\www\lib\js\yui\2\build\…
danjah
  • 2,939
  • 2
  • 30
  • 47
1
vote
0 answers

Using YAHOO.util.Connect.asyncRequest() in place of DataSource.sendRequest()

I'm looking to use YAHOO.util.Connect.asyncRequest() to get updated information for my DataTable, so I can bind the request to a form. YAHOO.util.Connect.setForm(this.myForm); YAHOO.util.Connect.asyncRequest("GET","/foo/bar/?", oCallBack); instead…
AGreyCrane
  • 37
  • 4
1
vote
2 answers

Issues subscribing to YUI2 DataTable events using 2in3

Does anyone know if there are any known issues subscribing to events fired by a YUI2 DataTable when using with YUI3 2in3? I'm trying to do the following and it's not working: myDataTable.subscribe("initEvent", function(){ Y.log('******** hello…
Bart Gottschalk
  • 174
  • 2
  • 11
1
vote
1 answer

Google analytics is blocked by browser

I want to do some operations if the Google analytics is blocked by the user (may be by the browser). I am getting a lot of answers here if it is using ga.js, but I am including the analytics.js. When I tried (typeof ga) = function (always…
Arun Pati
  • 125
  • 1
  • 9
1
vote
1 answer

How to create a Modality Mask in YUI2?

I want to know how a modality mask can be created in YUI2 without using a configuration attribute. While rendering a YUI Panel, the mask normally renders before the panel is displayed. I want to do this in order to resolve a cross browser…
the-petrolhead
  • 597
  • 1
  • 5
  • 16
1
vote
0 answers

yui2 to jQuery DOM get value of a variable Code Translatiion

Like the title says I try to make this in jQuery ("Groups" is an ID of a ComboBox): var groups = YAHOO.util.Dom.get("Groups"); var group = groups[groups.selectedIndex]; var elem_name = YAHOO.util.Dom.get(group.value+"name"); var elem_members …
1
vote
2 answers

YUI DataTable sort number with link

I have columns that are basically 399.99 If I set parser:"number" on the column, I get a blank column, but if I don't, the sorting is not a numeric sort. Is there a better parser that can handle links around the…
Paul Tarjan
  • 48,968
  • 59
  • 172
  • 213
1
vote
1 answer

yui2 update option items

I'm using yui2 framework...I have the following code....I need to add selected attribute to option node. I found this linkhttp://yuilibrary.com/forum/viewtopic.php?p=23574..it deals with yui3..not quite sure about yui2. `
1
2 3 4