Quantcast
Channel: IBM Mobile Tips 'n' Tricks » andrewferrier
Browsing all 13 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

ItemFileReadStore and the hierarchical Parameter

One cunning trick in Dojo can be to use an ItemFileReadStore class (or its read-write brother, ItemFileWriteStore) to take a list of data, often from an array in memory, and provide the ability to sort...

View Article



Image may be NSFW.
Clik here to view.

Installing dojotoolkit.org-equivalent local documentation

The Dojo API documentation available through dojotoolkit.org is really handy for Dojo developers, but sometimes it can be handy to have this available offline, for development when you don’t have...

View Article

Image may be NSFW.
Clik here to view.

Returning a Deferred object within a Deferred Callback does The Right Thing

dojo.Deferred is very cool, but it’s very easy to tie yourself up in knots. It’s worth spending some time reading about it. The official API doc is good, as is this article which discuss what’s new in...

View Article

Image may be NSFW.
Clik here to view.

Constructing a Lightweight Generic Function Trace Mechanism for Javascript

(I’ve brought together the ideas for this concept from various places – thanks to this answer on Stack Overflow and in turn this page for information about arguments.callee). Oftentimes, when you’re...

View Article

Image may be NSFW.
Clik here to view.

dojo.hitch and dojo.partial pattern – simplification

Updated 2010-03-15: Heavily re-edited to account for previous post and incorporate some new understanding about dojo.hitch. Tom wrote a few weeks ago about a code pattern that involves combining...

View Article


Image may be NSFW.
Clik here to view.

“use strict” coming in Internet Explorer 10

I’ve just been trying out the Internet Explorer 10 preview, which was announced today. Like Firefox 4, which I wrote about some time ago, it appears it will support use strict, which allows for some...

View Article

Image may be NSFW.
Clik here to view.

Seeing the JavaScript console when writing PhoneGap applications in Eclipse

Recently I’ve been doing some work with writing PhoneGap/Dojo Mobile applications for Android, using Eclipse as the IDE. These work just fine with the Android emulator, but it took me a while to find...

View Article

Image may be NSFW.
Clik here to view.

Displaying and Styling a Read-only Dojo Tree Control

In this tutorial, we are going to be using the Dojo toolkit – a popular JavaScript tookit shipped with the IBM Feature Pack for Web 2.0 and Mobile. Specifically, we are going to be using the dijit.Tree...

View Article


Image may be NSFW.
Clik here to view.

Functional Mapping Across Object Attributes in Dojo

Recently I discovered the very useful function dojox/lang/functional.mapIn(). This allows you to functionally transform one object to another by mapping each value in the object using a callback...

View Article


Image may be NSFW.
Clik here to view.

Chrome Developer Tools Tricks

This post is a round-up of some of the less-known debugging tricks I’ve learnt about related to the Chrome Developer Tools window. You might know some, but hopefully there’s at least one in here which...

View Article

Image may be NSFW.
Clik here to view.

Where do I specify the hostname of my Worklight server?

When developing a Worklight application, there are various places the hostname of your Worklight server might need to be specified, and might end up: In the mobile app itself (the .ipa, .apk etc.) –...

View Article

Image may be NSFW.
Clik here to view.

Transforming worklight.properties values in JNDI properties suitable for...

If you’re working with a Worklight application, you might like to exploit the fact that Worklight allows you to programmatically retrieve custom values from the worklight.properties file defined in...

View Article

Image may be NSFW.
Clik here to view.

.gitignore for Worklight

I have recently started maintaining a .gitignore template file for IBM Worklight Foundation on github, in a similar spirit to the standard gitignore repository. Please feel free to take a look; just...

View Article

Browsing all 13 articles
Browse latest View live




Latest Images