|Last Updated||Ratings||Unique User Downloads||Download Rankings|
|2017-04-07 (1 month ago)||Not enough user ratings||Total: 440||All time: 67 This week: 13|
|jquery-annex 37||GNU General Publi...||1.6||jQuery, Utilities and Tools|
This package provides general purpose functions missing in jQuery library.
An example? Load a stylesheet the same way you'd load a script with getScript().
Another example? Flexible, centrally disablable console logging with check if the console is available.
Some more? Polling. A real isNaN. Pythonic string formatting. Precise long running timers. Method throttling. History manipulation. Image preloading. Webfont display callback. Sane date objects. And so on and so forth ...
Generally speaking: everytime i need some general missing functionality, semantically fitting with the jQuery core, I implement a generic solution. If something gets absorbed by the core it will be removed.
Annex should always fit the current jQuery version. Changes may be breaking but are documented in the commits. The fitting jQuery version is always included in the uncompressed file's header doc.
Easy as pie. Just include it after jQuery and you're good to go.
<script src="jquery-x.xx.x.min.js"></script> <script src="jquery.annex.min.js"></script>
If you need some pointers about the possibilities, in the "/doc"-folder an expansive documentation (open index.html), where each method also includes examples.
Just use it the same as you would with jQuery. Define it as a package in your paths/maps and require it. jQuery, of course, is an automatic dependency.
This just lets you streamline everyday jQuery code and make things generally more friendly, for the price of 25kb.
In bigger projects, I'd recommend a solid framework like angular or backbone and maybe add underscore, here jQuery, if used at all, is mostly included for it's selector engine. So a jQuery addition seems a little pointless.
So in summary: Annex is a good addition for small to medium projects with a heavy focus on jQuery.
This little piece of code is the result.
You can do quite advanced stuff with this plugin and I already used this for quite complex, bigger projects with knockout for example, but the API is still a little strange and convoluted for my taste, which is a result of the original validation structure of HtmlForm.
Nonetheless, this is quite mighty and the example implementation in
plugin-validation-example will give you a good idea about the general workings.
By the way: this is a form validator, not an object or schema validator. If you don't have an actual form to validate, do yourself a favour and use SchemaInspector.
|dist (4 files)|
|doc (2 files, 3 directories)|
|examples (2 files, 1 directory)|
|src (2 files)|
|Version Control||Unique User Downloads||Download Rankings|