Thursday, July 18, 2013

Time Spinner - Part 2

The original time spinner would only work for one item. It is possible to make it work for more by using the each functionality of jQuery. The process is cumbersome compared to using jQuery UI's widget capability.

Tuesday, July 16, 2013

Time Spinner - Part 1

This is a time spinner built on the jQuery UI spinner. Specifically, it is based on the time example and a Stack Overflow entry.

The reason for creating this version is quite simple. The time example built as a demonstration for jQuery UI seems overly complicated (to me) and relies on additional scripts. I wanted something simpler and reliant upon no other libraries.

While building this, I came across a deprecation issue. The original code would work with jQuery UI version 1.9. However it would not work with version 1.10. After some framming around, I found the problem.

This version is based on version 1.9.

For later version of jQuery UI, the code .data("spinner") needs to be changed to .data("ui-spinner")