“Thursday Tech Tip”

Thursday Tech Tip – Parsing JSON with handlebars.js

24 Oct , 2013 Technology,Thursday Tech Tips

Thursday Tech Tip – Parsing JSON with handlebars.js

In the interest of sharing examples of from lessons learned, I have created a demo and write up on how to use the handlebars.js library for processing JSON data returned by an API call and then dynamically display that content on a web page. I deal with JSON data more and more in my work projects and happen to prefer it to XML data, partly because of XML data can be rather large and clunky to deal with. Leveraging handlebars.js allows me to quickly traverse JSON arrays and grab the necessary key : value pairs I need for rendering content. I hope others find this useful. The linked example demonstrates how to use the Gilt API to get current sale items by category, and then use handlebars.js to translate the resulting json data into nice neat little card style objects. Any API that returns JSON data could be substituted in.

, , , , , , , , , ,

Thursday Tech Tip – Sending HTTP Posts in iOS

17 Oct , 2013 Technology,Thursday Tech Tips

Thursday Tech Tip – Sending HTTP Posts in iOS

I came across a challenge the other day at work while trying to incorporate a click event into an iOS app. Essentially, when a user clicks on an object within the app that involves a segue sequence, for example an article in an RSS reader app, we want to record that click by logging it in an app on a remote server. I tried to use some of my company’s existing JavaScript functions that make API calls to our remote observation server.

, , , , , , , , , , , , ,