yui-datasource

yui, form submission and data table

I'm a Java programmer, but not a JavaScript programmer. I have just discovered YUI, and am trying to get started using it. What I'd like to try and do is have the query form at the top of the page, the user press Submit and the results show up in a YUI DataTable below the query form. Normally, of course, on a HTML form the user presses ...

Get full data set, sorted with YUI Data Table with Pagination

I hope I am describing my issue enough.. here goes: I have a YUI data table, get a server side set of records via JSON, and then populates the data. Users can click on the headers to sort the data in three of the 6 columns, (which are using a custom sort function for each column). The sorting is done client-side. When a user sorts th...

Using cellUpdateEvent with YUI DataTable and JSON DataSource

I'm working with a UI that has a (YUI2) JSON DataSource that's being used to populate a DataTable. What I would like to do is, when a value in the table gets updated, perform a simple animation on the cell whose value changed. Here are some relevant snippets of code: var columns = [ {key: 'foo'}, {key: 'bar'}, {key: 'baz'} ...

How to cache YUI DataSource?

I'm setting up a YUI DataTable with filtering by following the steps on the YUI site However, I am using JSON as the DataSource ResponseType. When I type in a value to filter, the request will be sent to the server again. I find this to be wasteful as all the data has already been retrieved the first time. Is there a way to cache the...

How do I make an XHRDataSource request to a Django server in YUI?

I'm using post, and the YUI documentation example code isn't working. YAHOO.util.Event.addListener(window,"load",function() { var columnDefs = [ {key:"url", sortable:true, resizeable:true}, {key:"title", sortable:true, resizeable:true}, {key:"count", sortable:true, resizeable:true} ]; this....

Traversing an XML file using YUI 2.8 library

I have a requirement to parse/traverse an XML file using the YUI 2.8 library. From the YUI's manual page of DataSource, I could get info about how to get the XML file using XHRDataSource and then set the response type and response schema (understood it after so many readings :P ). But, after setting up the DataSource, I don't know what...

How do you hook an event to a datasource in YUI?

http://developer.yahoo.com/yui/datasource/#events I'm trying to use the responseParseEvent but I don't know how to hook into into my datasource object because YUI doesn't provide any examples. Sidenote: Has anybody else noticed this with YUI? That their documentation doesn't contain nearly as many examples as jQuery? ...