…using a simple jQuery call.The Delete, Edit, and Add Functions $("#noteList").on("click", "a.delete", function(e) { var thisId = $(this).parent().parent().data("key"); var t = db.transaction(["note"], "readwrite"); var request = t.objectStore("note").delete(thisId); t.oncomplete = function(event) { displayNotes(); $noteDetail.hide(); $noteForm.hide(); }; return false; }); $("#noteList").on("click", "a.edit", function(e) { var thisId = $(this).parent().parent().data("key"); var request = db.transaction(["note"],…
…using the command line. If you’re not sure what these are, I’d recommend looking over the following first:http://net.tutsplus.com/?s=githttp://net.tutsplus.com/?s=terminalSuperhero DotfilesWhat if you could style the Terminal, make the speed of Mission Control faster, run g instead of git, have tab autocomplete regardless of filename case, check for software updates daily, not…
…using traditional web development skills. Ambitious and sometimes controversial, the effort known as PhoneGap grew out of this need and one converts left and right.One of the main masterminds behind the framework is Brian Leroux who apart from being well-respected for his development skills and incredibly likeable personality is also…
…using attributes and associations. For instance, the definition of a Person model might look like this:// Person.js var Person = { name: 'STRING', age: 'INTEGER', birthDate: 'DATE', phoneNumber: 'STRING', emailAddress: 'STRING' }; exports = Person;The communication with the underlying database is done through adapters. Adapters are defined in api/adapters and…
…using Laravel 4. We’ll start from the very beginning by creating our Laravel app using composer, creating the database, loading in the Twitter Bootstrap, creating a main layout, registering users, logging in and out, and protecting routes using filters. We’ve got a lot of code to cover, so let’s get…
…using React.createClass and passing in an object that implements some core functions. The most important one is the render(), which generates the intermediate-DOM.Here we are using JSX to define the DOM and also attach the mousedown event-handler. The {} syntax is useful for incorporating JavaScript expressions for attributes (onMouseDown={this.handleClick}) and…
…using your website, you need to use SSL (HTTPS). And not only for login sites, or valuable information. For all of your content. Otherwise, when someone is accessing your app from a public network, what they see may be malformed by some hacker inside this network. This is called a…
…using plain WebGL, it would take ages. This is exactly why some really useful libraries have recently came about. Three.js is one of the most popular, and in this series I will show you how best to use it in order to create stunning 3D experiences for your users.Before we…
…using Ember's Ember.Object main base class to create objects that define the methods and properties that act as a wrapper for your data. Here's an example:App.Item = Ember.Object.extend(); App.Item.reopenClass({ all: function() { return $.getJSON('http://api.ihackernews.com/page?format=jsonp&callback=?').then(function(response) { var items = []; response.items.forEach( function (item) { items.push( App.Item.create(item) ); }); return items; });…
…using the up and down keys to scroll up and down the results and enter adds the selection, while hitting escape hides the autocomplete menu. This is a work in progress.Read moreBook: Node.js In ActionNode.js in Action is an example-driven tutorial that starts at square one and guides you through…