Share via


Populating a combo box from the cache with datajs

A new documentation topic is up on CodePlex with a sample page demonstrating how to populate a combo box from a datajs cache.

If the browser doesn't support any storage API or if the user's storage quota is full, it still works as intended.

There is also some very simple code to disable and re-enable the control, always a good thing. Note that the error handler leaves the combo box disabled on purpose and removes any partial progress made, which is often better than letting the user work with incomplete data.

Enjoy!