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")

1 comment:

  1. Thank you. This is exactly what I've been looking for. You are brilliant