background preloader

JavaScript

Facebook Twitter

Awesome JQuery time picker. Experimental code ! This is my humble attempt to enhence web time picking. For the moment I'd call it a toy project, it might stay in experimental state evitam eternam.. I just wanted to see if I could create a better time picker. I've seen lots of time pickers styles and approaches, but none seems to focus on user experience accross many platforms and beautiful degradation.

So I've determined a set of goals to achieve a better time picker. Goals Unobtrusive Graceful degradation Using maximum 2 clicks Intuitive keyboard navigation Be touch friendly (think iphone, tablet pc, etc..) Demo 12345678910111200153045ampm Basic usage Options Tested browsers Mozilla Firefox 2 (Windows) Mozilla Firefox 3.0.3 (Linux) Mozilla Firefox 3.0.3 (Windows) Epiphany Web Browser 2.22.2 (Linux) Safari 3.1.2 (Windows) Microsoft Internet Explorer 6 Microsoft Internet Explorer 7 Todo. You think you know (JavaScript) but you have no idea.

DOM Assistant (robertnyman.com) jQuery the Right Way - Wealthfront Engineering. jQuery has changed the way we write Javascript by abstracting out much of the painful cross-browser implementation details that used to plague developers, but to use it correctly still requires a little knowledge about what’s going on under the hood. In this post we’ll take a good look at jQuery’s selectors and how to use them efficiently. I’ll also talk briefly about DOM manipulation and event handlers. Part 1: Search At its core jQuery is exactly what its name implies, a query engine designed for search. And just like you’re careful to construct efficient SQL queries, you need to take the same care with your jQuery selectors. Efficient selector use boils down to three main concepts.Using the right selectorNarrowing the search spaceCaching Ego and #ID You’re right, it’s never that clear cut Good browsers actually provide a getElementsByClass which greatly improves the performance of class selectors.

See? Narrowing the search Good semantics, good selectors Luckily this isn’t hard to do. Unobtrusive JavaScript — Use It! (chromasynthetic.com) I recently finished reading Learning jQuery 1.3 written by Jonathan Chaffer and Karl Swedberg, and while this version is merely a rewrite of an earlier edition, my review will be based on the book as a whole and will not compare differences. If you’re looking looking for that, try this review . Being an intermediate jQuery user, I found the book a bit too basic. It seems to be written mostly for beginners. With that being said, it is an excellent book for beginners. I was really impressed with the quality of the examples. Though you should probably have an understanding of JavaScript before learning jQuery, there is also some good material that applies to general JavaScript authoring, such as closures. Anyone will find useful the list of resources and plugins at the end of the book. If you’re a jQuery beginner, I highly recommend this book.

Eloquent JavaScript (eloquentjavascript.com)