yui2

YUI DataTable sort number with link

I have columns that are basically <td><a href="somewhere">399.99</a> 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 number? The code is for http://paulisageek.com/compare/cpu/ ...

YUI2.8: How to target element with handler applied only.

Hi, I'm having some probs with event propagation, I understand the concept, but I don't understand how to squash the default YUI behaviour. I have this markup: [divElement id="container"][imageElement ... /][/divElement] I have added a click event to the container element like so: ye.on(yd.get('container'), 'click', function(el){ // d...

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 checked? UPDATE Here is my current work-around: YUI().use("node", function(Y) { var recor...

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 from initEvent'); }); Other features of the DataTable seem to be working but I can't s...

Issue with Resizeable Columns in YUI2 DataTable Nested in YUI3 Tabview

I'm having an issue with resizing columns in a YUI2 DataTable when the table is nested inside a YUI3 Tabview. My situation: YUI3 Tabview has 4 tabs. Each tab contains a DataTable that has sortable and resizable columns. The columns in the DataTable of the first tab (the default tab that is displayed after loading the tab view) are sor...

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 of: this.myDataSource.sendRequest(myRequest, oCallBack); The issue is that asyncReque...

Save YUI2 DataTable content to $_POST

Hello, I'm populating a YUI2 DataTable from a database (in PHP). Now the user should make changes to the DataTable. These changes should be saved to $_POST so they can be saved to the database again. My problem: The only way to put variables into post seems to be input elements in a form. But the DataTable contains no input elements, i...

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

Hi all, 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\ (http://localhost/lib/js/yui/2/build/) All YUI min, debug and raw files located ...