- Loading...
- No images or files uploaded yet.
|
|
Data LibraryQ: What is a Data library? A: It is a collection of common functions packaged up for reuse for interacting between the page AJAX, the page elements and servers that send and recieve data.
There are a few basic elements to making a simple data library that is functional, easy to learn but powerful to use in features and flexability. (The terms here are used in other libraries and work... if you have suggestions please add them to the comments.)
Data: This is simply the variable that holds the data locally if it is not pulled from a server.
Model: This is the piece that allows intelligent and extended handling to the data. Is this data a date, numeric, currency? It helps the components to know what kind of data they get... and thus it is easier to add intelligence without redundant coding. (Elegant coding makes everyone happier.)
Reader: There will be some standard data readers and if you want or need the interface will be something that will allow you to create a custom reader to deal with content not handled by the standard readers. What type of readers should be standard? XML, JSON and JavaScript Array set.
Store: This is the component that will actually be used in an interactive way. This is the ojbect you will use to page, pull new data and push data back to the server as it is saved.
What type of other things should be handled by such a library in our wish list?
The end objective would be to allow both jQuery UI and non-jQuery UI AJAX elements to be built to interact with the data store. This would be certainly something UI can support but third party library authors will be welcome to take just this library and use it in their own jQuery tools.
(NOTE: More detail to follow... and suggestions, comments and ideas should be added to the comment section.) |
Comments (1)
Richard D. Worth said
at 6:54 pm on Jan 12, 2009
Here's an article that discuses Dojo's data abstraction http://unclescript.blogspot.com/2009/01/what-makes-dojo-diferent.html
You don't have permission to comment on this page.