background preloader

Web Dev

Facebook Twitter

Yeoman - Modern workflows for modern webapps. Dive Into HTML5. Can I use Cross-Origin Resource Sharing. Access Control for Cross-Site Requests. Abstract This document defines a mechanism to enable client-side cross-site requests. Specifications that want to enable cross-site requests in an API they define can use the algorithms defined by this specification.

If such an API is used on resources, a resource on can opt in using the mechanism described by this specification (e.g., specifying Access-Control-Allow-Origin: as response header), which would allow that resource to be fetched cross-site from Status of this Document This section describes the status of this document at the time of its publication. This is the 12 September 2008 Working Draft of the "Access Control for Cross-Site Requests" document. Please send comments to the WebApps Working Group's public mailing list public-webapps@w3.org with [access-control] at the start of the subject line. This document was produced by a group operating under the 5 February 2004 W3C Patent Policy. 1. API Reference - PouchDB. Most of the PouchDB API is exposed as fun(arg, [options], [callback]) where both the options and the callback are optional.

Callbacks use the function(err, result) idiom where the first argument will be undefined unless there is an error, and the second argument holds the result. Additionally, any method that only returns a single thing (e.g. db.get) also returns a promise. Promises come from the minimal library lie in the browser, and the feature-rich Bluebird in Node. new PouchDB([name], [options]) This method creates a database or opens an existing one. If you use a URL like then PouchDB will work as a client to an online CouchDB instance. Options options.name: You can omit the name argument and specify it via options instead. Notes: In IndexedDB and WebSQL, PouchDB will use _pouch_ to prefix the internal database names.

Example Usage: var db = new PouchDB('dbname');// orvar db = new PouchDB(' Create an in-memory Pouch (in Node): Tips: Starter | Jumpstart Your jQuery Plugin Development. The Ultimate Guide to Writing jQuery Plugins. I have written a few articles about jQuery Plugin Development in the past which readers seem to have been interested in, but I have since then written many more plugins and have thus picked up a few more tips and tricks. I have therefore decided to put together this more comprehensive guide on jQuery Plugin Development. I also want to note the importance of knowing how to develop jQuery plugins well as I find myself building many little custom plugins for my sites making it much easier to maintain not to mention reuse in other projects. Anything from little pagination and nav loaders to larger handlers for many of my ajax requests. When using in conjunction with a client side framework like Backbone.js you can really develop some nice modular code and keep frameworks like Backbone doing what they do best, controlling the logical flow of your website.

Script Junkie | jWorldmaps: The Anatomy of a jQuery Mapping Plugin. Ever want to know how to write a jQuery plugin? For some of you, the answer may be yes, because learning anything new and cool is what drives you. For others, the answer may well be no, because learning in the abstract isn’t as important as solving the particular problem you’re facing today. In this article, I’m aiming to satisfy both groups by showing you how I solved a particular problem with my website code by creating a jQuery plugin of my own. Background One common desire for website creators/owners is a tool or tools that will help them measure the reach of their sites. What’s the Problem? Implementing Worldmaps isn’t terribly difficult, nor is showing the map of visitor locations. Well, in my case, I wasn’t satisfied to just use the standard 160 pixel wide thumbnail map. How I Was Doing It Right now, you may be thinking, “well that’s easy too, just use a little jQuery, or even just hand-write the JavaScript” and you’d be right…that’s exactly where I started.

Why a Plugin? Apache CouchDB. The Definitive Guide. Simplest CSS3 Generator. Bootstrap. Need reasons to love Bootstrap? Look no further. By nerds, for nerds. Built at Twitter by @mdo and @fat, Bootstrap utilizes LESS CSS, is compiled via Node, and is managed through GitHub to help nerds do awesome stuff on the web. Made for everyone. Bootstrap was made to not only look and behave great in the latest desktop browsers (as well as IE7!) Javascript Territory - JSter Javascript Catalog.