Archive | JavaScript

phonegap

Pull-to-Refresh in PhoneGap and Topcoat Applications

Pull-to-refresh has become a standard UI pattern to refresh lists in mobile applications, and there is no reason not to use it in PhoneGap / Cordova applications. A first option is to use iScroll, which has pull-to-refresh built-in. That’s a great option for older OS versions or platforms that do not support touch-based scrolling natively. […]

12 commentsContinue Reading
requirejs

Building Modular Web Applications with Backbone.js and RequireJS — Sample App

In recent months, I have been sharing different versions of the Employee Directory sample application built with different technology stacks, different frameworks, and different back-end (REST services) implementations. A number of you have asked for a modular version of the application built using RequireJS. So here it is. RequireJS A complete discussion of the benefits […]

43 commentsContinue Reading
js

Building Pluggable and Mock Data Adapters for Web and PhoneGap Applications

This is not rocket science, but when planning your web or mobile architecture, it is important to make sure your client application is not tightly coupled to a specific data access strategy. The Problem In tightly coupled applications, the presentation logic is intertwined with data access logic (for example, $.ajax() calls), and it leads to […]

8 commentsContinue Reading
f_logo

Sociogram: A Sample Application Exploring the Facebook SDK and the Graph API

I’ve recently been working on a few applications that integrate with Facebook. As a reference for myself and other developers building similar applications, I thought it would be useful to put together a sample application that demonstrates some commonly used integration scenarios and workflows when using the Facebook JavaScript SDK and the Graph API. So, […]

37 commentsContinue Reading
webplatform

Exploring and Contributing to Web Platform Docs

Every programming language, platform, or library has its go-to web site for documentation and API reference: You probably go here if you are a Java developer, here for PHP, here for Ruby, here for jQuery, here or here for your database documentation needs, etc. But where do you go for HTML, JavaScript, and CSS documentation? […]

2 commentsContinue Reading
nodejs

NodeCellar: Sample Application with Backbone.js, Twitter Bootstrap, Node.js, Express, and MongoDB

In my previous post, I shared my recent experience building a RESTful API with Node.js, MongoDB, and Express. In this post, I’m sharing the client application that uses that RESTful API. The Node Cellar application allows you to manage (retrieve, create, update, delete) the wines in a wine cellar database. (more…)

150 commentsContinue Reading

Using Backbone.js with jQuery Mobile

Backbone.js is an architectural framework that helps you write well-structured Web applications. It is not, however, a user interface framework and it therefore doesn’t help you with the way your application looks. Backbone’s confined scope is a good thing: it’s lightweight, non-intrusive, not coupled to things you don’t need, and it lets you use the […]

60 commentsContinue Reading

Sample App with Backbone.js and Twitter Bootstrap

Backbone.js is a lightweight JavaScript framework that provides the basic infrastructure (Model, Collection, View, and Router classes) to bring structure to your Web applications. Twitter Bootstrap is a UI toolkit that provides simple and flexible HTML, CSS, and Javascript to implement popular user interface components and interactions. In other words, Backbone.js and Twitter Bootstrap focus […]

133 commentsContinue Reading
phonegap

Sample Mobile App with Backbone.js, PhoneGap, and a Local Database

In my previous post, I shared a simple Wine Cellar application built with Backbone.js and packaged as a mobile app with PhoneGap. That version of the application gets its data from a set of RESTful services, which means that you can only use it while online. In this post, we explore an offline version of […]

75 commentsContinue Reading

css.php