JavaScript Quickie: Detect iframe Parent URL

This post is just going to be a quick rundown on a neat trick I cobbled together today. I build out a lot of services and such at the university which include embed-able widgets and players and such. Traditionally, we’ve used a SWF for all of these things and have used an object/embed type of HTML element structure to perform the embed. Over the past few years, we’ve been creating all new projects to utilize iframe in place of this. There are three primary reasons we are using iframe to enabled embeds of this type: It allows us much greater

Continue reading »

JSON Dataset Generation

Earlier today, I found the need to generate and make use of a large JSON dataset for populating a list within a mobile app experience. I needed thousands of records to test and all of the sample JSON files I could find were pretty small, simple things. I reached out on Twitter and recieved a few responses, including a rather neat Node-based solution from Ray Camden. However, after a little more research, I stumbled across a really convenient web-based project called JSON Generator which took care of all my needs quite handily! Not only did this produce a rich set

Continue reading »

PhoneGap: Saving Arrays in Local Storage

One of a handful of local storage options for PhoneGap applications is the localStorage solution which is actually part of the W3C specs. It provides access to a W3C Storage interface since we are just dealing with HTML5 in PhoneGap. This is a good option for storing simple strings but what if we want to store more complex data structures but don’t want to be bothered with a SQLite database for our application? It’s actually possible to do this via some JSON trickery! In this example, we will first initialize our Array object to hold all the data: var gatheredPosts

Continue reading »

Review: PhoneGap 2.x Mobile Application Development Hotshot

I’ve been working a lot with PhoneGap lately for both personal projects and teaching. Because of this, I’ve taken some time to check out some of the newer books on the subject. The last book I’ve had a chance to look over is the PhoneGap 2.x Mobile Application Development Hotshot published by Packt (Packt being the publisher of my latest book as well – Learning Adobe Edge Animate). The book itself is just under 400 pages and is structured in an interesting way because every chapter is a different PhoneGap project. These projects include some really great examples of localization,

Continue reading »

Absinthe Dilution Faerie 2.0

Absinthe Dilution Faerie version 2.0 is now available for free via Google Play! “Absinthe Dilution Faerie” is a small application which calculates how much water one should temper a dose of absinthe with in accordance with the ABV percentage as laid out by Michael Meyers of The Wormwood Society. So what’s new in this version? Quite a bit! New application imagery Default database of absinthes Clicking upon an absinthe will load it into the calculator Ability to add your favorite absinthes to the database Database management: add/update/delete Include tasting notes for each brand of absinthe So… go download and louche

Continue reading »

PhoneGap and HTML5SQL.JS

I’ve been doing a lot of digging around in PhoneGap lately. This dovetails nicely with my Edge Animate and Edge Reflow work – but I also see it as an extension of my work with Adobe AIR and Flash Player on mobile. One of the interesting things about working in web technologies with modern browsers (including mobile), is that we have so many choices due to fragmentation or simply because of competing ideas. I’ve found many of the solutions for web storage on mobile to be either lacking or frustratingly complex. A few weeks back, I rand across a nice

Continue reading »

PhoneGap Starter (for PhoneGap Build)

Most PhoneGap “Hello World” examples make you go through the task of configuring PhoneGap on your system and making sure your system PATH is set with Android Virtual Device support and a bunch of command line interfacing… and it is CONFUSING for newcomers! What if you just want to write your code… test your code in browser… then compile everything with PhoneGap Build services? Well, then you read this tutorial! To complete this example, you will need: Google Chrome Ripple Emulator Plugin from http://emulate.phonegap.com/ ZIP file package An IDE to edit the code A web server (like IIS, APACHE, whatever)

Continue reading »