background preloader

Datejs - An open-source JavaScript Date Library

Datejs - An open-source JavaScript Date Library

structured-filter Demo structured-filter (currently v1.0.4) is a Web UI for building structured search queries. It is a full jQuery UI widget, supporting various configurations and themes. The documentation and source code are available at GitHub under MIT license. © 2015 Olivier Giulieri Examples Here you will see LiveValidation in action, and the code that makes it all happen, to serve as examples of its capabilities and as tutorials to get you started. IMPORTANT - As you probably already know, relying on client-side validation alone is a very bad idea. Always perform appropriate server-side validation as well. Contents Homepage example Top First up, just in case you were wondering, the homepage example consists of 2 validations - Presence to make sure it is filled in, and Format to check that the value entered contains ‘hello’ in any case. Say “hello”: First the field is set up to be a LiveValidation object, by passing in its id as the first argument. Then the Presence validation is added to it, and this example also provides an overridden failureMessage: Finally the Format validation is added, with the regular expression pattern to validate against, again with an overridden failureMessage for this example: Presence Top Presence will fail if there is no value entered in the field.

Moment.js | Home The most important programming language today Posted on May 14th, 2010 in Programming | 21 comments “What programming language should I study next? What framework?” I occasionally receive emails from younger — and not so young — readers alike asking me for guidance about such matters. “Use the right tool for the job” is the correct answer, but it’s cheap advice when there are a plethora of tools seemingly right for the job. For most people these days the job at hand is of course web application development. Should they study Ruby and Ruby on Rails? With very few exceptions, in 2010, it’s hard to choose a combination of semi-popular technologies that couldn’t do the job. The real reason why I get asked these questions though, is that these people are mostly looking for a silver bullet, a language-framework combo that will magically allow them to create fantastic web applications in a matter of weeks. When I think about the future of programming languages, I envision Babel not people talking Esperanto. Translations: Serbo-Croatian

scottjehl/Respond Core JavaScript 1.5 Guide - MDC The JavaScript Guide shows you how to use JavaScript and gives an overview of the language. If you need exhaustive information about a language feature, have a look at the JavaScript reference. This Guide is divided into the following chapters. Introduction Grammar and types Control flow and error handling Loops and iteration Functions Expressions and operators Numbers and dates Text formatting Indexed collections Keyed collections Working with objects Details of the object model Promises Iterators and generators Introducing PourOver and Tamper Client-side superfast collection management from the NYT This project was documented and released as part of the first OpenNews Code Convening. Today we’re open-sourcing two internal projects from The Times: PourOver.js, a library for fast filtering, sorting, updating and viewing large (100k+ item) categorical datasets in the browser, andTamper, a companion protocol for compressing categorical data on the server and decompressing in your browser. We’ve achieved a 3–5x compression advantage over gzipped JSON in several real-world applications. We invite you to explore the docs and examples for both projects; we also have some next examples over on the Times’ Open blog. Collections are important to developers, especially news developers. Dissatisfied with this state of the art, we made PourOver as an attempt to standardize an efficient and extensible model of client-side collection management and weaken reliance on server-side collection operations. Enter Tamper Buffered PourOvers In the Wild

Great Ways to Learn jQuery These jQuery resources will set you on the path towards mastering jQuery. Written Articles Getting Started with jQuery – this is the official jQuery getting started guide.jQuery for JavaScript Programmers – Simon Willison (creator of django) gives you an introduction to jQuery for people who already understand JavaScript.jQuery Crash Course – Nathan Smith gives a quick introduction to jQuery on Digital Web Magazine.Introduction to jQuery – Rick Strahl, well-known for his work developing with Microsoft technologies, gives his introduction to jQuery with part two covering using jQuery with ASP.NET. E-Books jQuery Fundamentals – open-source e-book written by Rebecca Murphey in collaboration with other well-known members of the jQuery community.jQuery Enlightenment – Cody Lindley’s e-book covers advanced topics on jQuery with links to working code examples in jsbin. jQuery Books Slideshows Learning Screencasts Attend a training course Hire a Corporate jQuery Trainer Conferences jQuery Meetups Podcasts

statechartjs/statechartjs [PROJECTS] michael/proper - GitHub Optimizer RequireJS has an optimization tool that does the following Combines related scripts together into build layers and minifies them via UglifyJS (the default) or Closure Compiler (an option when using Java).Optimizes CSS by inlining CSS files referenced by @import and removing comments. The optimizer is part of the r.js adapter for Node and Rhino, and it is designed to be run as part of a build or packaging step after you are done with development and are ready to deploy the code for your users. The optimizer will only combine modules that are specified in arrays of string literals that are passed to top-level require and define calls, or the require('name') string literal calls in a simplified CommonJS wrapping. var mods = someCondition ? but 'a' and 'b' will be included if specified like so: require(['a', 'b']); or: define(['a', 'b'], function (a, b) {}); This behavior allows dynamic loading of modules even after optimization. Requirements§ 1 Node: (preferred) Node 0.4.0 or later. Download§ 2 <!

Seven JavaScript Things I Wish I Knew Much Earlier In My Career - Smashing Magazine Advertisement I’ve been writing JavaScript code for much longer than I care to remember. I am very excited about the language’s recent success; it’s good to be a part of that success story. I’ve written dozens of articles, book chapters and one full book on the matter, and yet I keep finding new things. Here are some of the “aha!” Shortcut Notations One of the things I love most about JavaScript now is shortcut notations to generate objects and arrays. var car = new Object(); car.colour = 'red'; car.wheels = 4; car.hubcaps = 'spinning'; car.age = 4; The same can be achieved with: Much shorter, and you don’t need to repeat the name of the object. The other handy shortcut notation is for arrays. var moviesThatNeedBetterWriters = new Array( 'Transformers','Transformers2','Avatar','Indiana Jones 4' ); The shorter version of this is: var moviesThatNeedBetterWriters = [ 'Transformers','Transformers2','Avatar','Indiana Jones 4' ]; This is not Sparta; this is madness—don’t bother with this. Resources

Related: