Categories
javascript jquery mobile

Mobile Friendly Clearable Text boxes Using jQuery

This is a quick and dirty example of how to make a mobile friendly text box clearable. This could easily be turned into a jquery plugin. HTML: [code lang=”html” autolinks=”false” classname=”codeClass” collapse=”false” firstline=”1″ gutter=”true” light=”false” padlinenumbers=”false” smarttabs=”true” tabsize=”4″] <div class="ui-input"> <input name="firstname" type="text" id="firstname" placeholder="First Name"> <span class="ui-icon-delete"></span> </div> <div class="ui-input"> <input name="lastname" type="text" id="lastname" […]

Categories
ios mobile

Disable Autocorrect & Autocapitlize In Mobile Forms

Disabling autocorrect seems obvious when dealing with mobile forms. This especially comes true in a log in page or creating an account page. [code lang=”js” autolinks=”false” classname=”codeClass” collapse=”false” firstline=”1″ gutter=”true” light=”false” padlinenumbers=”false” smarttabs=”true” tabsize=”4″] <input type="text" name="some-name" autocapitalize="off"/> The damage to nerves is usually caused by a muscle injury from straining to lift something or […]

Categories
couchdb nodejs

Working with NodeJS, CouchDB and Express Framework

This is a simple example of using node.js, nano (couch db modules) and the express framework to retrieve some data from a couch instance. Setting up the modules We will be using a couch instance from www.iriscouch.com. The database will be named “employees”. var nano = require(‘nano’)(‘http://lugomatic.iriscouch.com’); var db = nano.use(’employees’); We need to include […]