Using YUI 3.x Components :: Re: Events multiply when changing buttons in a panel

This issue has been addressed: https://github.com/yui/yui3/commit/d342 … fff912f8f2

Posted in Forum | Leave a comment

Using YUI 3.x Components :: Re: Events multiply when changing buttons in a panel

This issue has been addressed: https://github.com/yui/yui3/commit/d342 … fff912f8f2

Posted in Forum | Leave a comment

General :: Re: javascript error I[T] is undefined

It could be anything. You are using the minified version of YUI so all local identifiers get compressed to one or two letter names. There is no way to know what they meant in the original code. Load the debug versions instead which will produce far more meaningful errors.

Posted in Forum | Leave a comment

General :: Re: javascript error I[T] is undefined

It could be anything. You are using the minified version of YUI so all local identifiers get compressed to one or two letter names. There is no way to know what they meant in the original code. Load the debug versions instead which will produce far more meaningful errors.

Posted in Forum | Leave a comment

General :: javascript error I[T] is undefined

Hi,

I am trying to use DataTable and Pagination with Server Side pagination.

When the page loads, I will get lot of records in the DataTable and based on the number of records per page, I get page links. But the user can select only some records in that page and save.

Suppose I got 15 pages with 10 records in each page and I selected only one record and saved.

As the records are saved, the next page should get only those saved records. In my example, as I need to get only 1 record when I click the next page link, I am trying to set the page number to 1 in the buildQueryString as I cannot pass 2 as the page number to DB procedure which will return no records.

Based on the page number 1, the DB is returning the JSON string properly but I am getting a javascript error and the DataTable always says loading.

And when I check the error console, it says I[T] is undefined in yui/build/datatable/datatable-min.js.

What might be the issue and when we will get I[T] is undefined error?

Please help

Posted in Forum | Leave a comment

General :: javascript error I[T] is undefined

Hi,

I am trying to use DataTable and Pagination with Server Side pagination.

When the page loads, I will get lot of records in the DataTable and based on the number of records per page, I get page links. But the user can select only some records in that page and save.

Suppose I got 15 pages with 10 records in each page and I selected only one record and saved.

As the records are saved, the next page should get only those saved records. In my example, as I need to get only 1 record when I click the next page link, I am trying to set the page number to 1 in the buildQueryString as I cannot pass 2 as the page number to DB procedure which will return no records.

Based on the page number 1, the DB is returning the JSON string properly but I am getting a javascript error and the DataTable always says loading.

And when I check the error console, it says I[T] is undefined in yui/build/datatable/datatable-min.js.

What might be the issue and when we will get I[T] is undefined error?

Please help

Posted in Forum | Leave a comment

DataTable and DataSource :: QuickEdit and IE

I am able to run the QuickEdit/DataTable example and see it fine on Firefox but not on IE.
Has anyone else experienced this and know the solution to display it in IE?
On IE only the ‘Quick Edit’ button is displayed but not the table itself.
Thanks.

Posted in Forum | Leave a comment

DataTable and DataSource :: QuickEdit and IE

I am able to run the QuickEdit/DataTable example and see it fine on Firefox but not on IE.
Has anyone else experienced this and know the solution to display it in IE?
On IE only the ‘Quick Edit’ button is displayed but not the table itself.
Thanks.

Posted in Forum | Leave a comment

General :: custom sort function via DataTableSort plugin?

I’ve gotten this far:

Code:
var table = new Y.DataTable.Base({
    columnset: _this.get(‘columnSet’),
    recordset: e.response.results,
}).plug(Y.Plugin.DataTableSort, {});

var countSort = function(recA, recB, field, desc) {
    var countA = 1*recA.getValue(field); 
    var countB = 1*recB.getValue(field); 
    // return what?
    return …. ??
};

table.get(‘recordset’).sort.sort(‘count’,false,countSort);

I am trying to make a column sort numerically. I can get as far as extracting the values to be compared, but I don’t know what to return.

I tried using numerical comparisions and even ArraySort.compare, but both cause the error "T is null".

What’s the proper way to set a custom sort function in a YUI 3 DataTable via DataTableSort plugin?

TIA

Posted in Forum | Leave a comment

General :: custom sort function via DataTableSort plugin?

I’ve gotten this far:

Code:
var table = new Y.DataTable.Base({
    columnset: _this.get(‘columnSet’),
    recordset: e.response.results,
}).plug(Y.Plugin.DataTableSort, {});

var countSort = function(recA, recB, field, desc) {
    var countA = 1*recA.getValue(field); 
    var countB = 1*recB.getValue(field); 
    // return what?
    return …. ??
};

table.get(‘recordset’).sort.sort(‘count’,false,countSort);

I am trying to make a column sort numerically. I can get as far as extracting the values to be compared, but I don’t know what to return.

I tried using numerical comparisions and even ArraySort.compare, but both cause the error "T is null".

What’s the proper way to set a custom sort function in a YUI 3 DataTable via DataTableSort plugin?

TIA

Posted in Forum | Leave a comment