All Projects → axemclion → Jquery Indexeddb

axemclion / Jquery Indexeddb

Licence: other
An IndexedDB Plugin for Jquery.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Jquery Indexeddb

Stickyfloat
This plugin makes it possible to have a fixed position element that is relative to it’s parent. A normal fixed positioned element would be “out of context” and is very difficult to use in the most common situations with fluid designs. This plugin solves that problem with as little code as I could possible get it so it will run in the most optimized way, while also allow you to customize it in many important ways which might suit you best.
Stars: ✭ 166 (-15.74%)
Mutual labels:  jquery-plugin
Jquery.redirect
jQuery Redirect Plugin
Stars: ✭ 182 (-7.61%)
Mutual labels:  jquery-plugin
Tui.editor
🍞📝 Markdown WYSIWYG Editor. GFM Standard + Chart & UML Extensible.
Stars: ✭ 14,016 (+7014.72%)
Mutual labels:  jquery-plugin
Jquery Ui Contextmenu
jQuery plugin that turns a jQueryUI menu widget into a context menu.
Stars: ✭ 170 (-13.71%)
Mutual labels:  jquery-plugin
Bootstrap Input Spinner
A Bootstrap 4 / jQuery plugin to create input spinner elements for number input
Stars: ✭ 176 (-10.66%)
Mutual labels:  jquery-plugin
Jquery History
Super-seeded by https://github.com/browserstate/history.js
Stars: ✭ 183 (-7.11%)
Mutual labels:  jquery-plugin
Jquery Scrollstop
A jQuery plugin that fires events when scrolling stops and starts.
Stars: ✭ 158 (-19.8%)
Mutual labels:  jquery-plugin
Jquery Gantt
🌈 Lightweight jQuery gantt plugin.
Stars: ✭ 193 (-2.03%)
Mutual labels:  jquery-plugin
Lulu
LuLu UI for PC web
Stars: ✭ 2,354 (+1094.92%)
Mutual labels:  jquery-plugin
Rangeslider.js
🎚 HTML5 input range slider element polyfill
Stars: ✭ 2,153 (+992.89%)
Mutual labels:  jquery-plugin
Formbuilder
A jQuery plugin for drag and drop form creation
Stars: ✭ 2,194 (+1013.71%)
Mutual labels:  jquery-plugin
Ui Components
Most used UI Components — of web applications. Curated/Most loved components for web development
Stars: ✭ 175 (-11.17%)
Mutual labels:  jquery-plugin
Bs grid
Bootstrap Datagrid
Stars: ✭ 184 (-6.6%)
Mutual labels:  jquery-plugin
Sticky Sidebar
😎 Pure JavaScript tool for making smart and high performance sticky sidebar.
Stars: ✭ 2,057 (+944.16%)
Mutual labels:  jquery-plugin
Failsafe.js
A jQuery Plugin to make your App Robust
Stars: ✭ 190 (-3.55%)
Mutual labels:  jquery-plugin
Jquery Counter
jQuery.counter (javascript + css3)
Stars: ✭ 165 (-16.24%)
Mutual labels:  jquery-plugin
Jquery Contextmenu
jQuery contextMenu plugin & polyfill
Stars: ✭ 2,148 (+990.36%)
Mutual labels:  jquery-plugin
Croppie
A Javascript Image Cropper
Stars: ✭ 2,330 (+1082.74%)
Mutual labels:  jquery-plugin
Calx.js
jQuery Calx - a jQuery plugin for creating formula-based calculation form
Stars: ✭ 190 (-3.55%)
Mutual labels:  jquery-plugin
Restable
jQuery plugin that makes tables responsive converting them to HTML lists on small viewports.
Stars: ✭ 183 (-7.11%)
Mutual labels:  jquery-plugin

Jquery Plugin for the IndexedDB API Build Status

IndexedDB is a database inside a browser to save and retrieve objects on the browser/client. The JQuery IndexedDB Plugin is a wrapper on the IndexedDB API for JQuery.

Links

Summary

The Jquery IndexedDB Plugin brings to goodness of Jquery to the browser's native IndexedDB API. It supports method chaining, promises and smart defaults, enabling you to get more done with less code. It also abstracts out differences in browser implementations.

Code

The code written with the jQuery plugin is pretty simple. It looks something like

    $.indexeddb("BookShop-1").objectStore("BookList").openCursor().each(write); 

A typical operation using the IndexedDB API would involve using the request model, creating transactions, checking for existence of object store using error responses and exceptions and then finally getting to the part where the data is actually iterated over.

    var request = window.indexedDB.open("BookShop-1");
    request.onsuccess = function(event){
        var db = request.result;
        var transaction = db.transaction(["BookList"], IDBTransaction.READ_WRITE);
        var objectStore = transaction.objectStore("BookList");
        var request = DAO.objectStore.openCursor();
        request.onsuccess = function(event){
            var cursor = request.result;
            if (cursor) {
              write(cursor.key + "" + cursor.value);
              cursor["continue"]();                
            }
        };
    };

Read more about the API syntax in the documentation.

Building

Node is required to build this project.

  • npm insall -g grunt-cli # to install the grunt command line
  • npm install # to install all other dependencies from the package.json
  • Run one of the following grunt commands
    • grunt # to just minify, lint and build the source. Final file available in dist/ folder
    • grunt dev # to start a web server. Navigate to http://127.0.0.1:8080/test/ to run Qunit tests
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].