Internet Explorer JavaScript funkyness

In my work project, I needed to visualize date ranges. A quick Google search led me to the vis.js framework. A easy to use¬†framework that nicely renders the date ranges on a timeline. A bit of tweaking and it looked good… until I checked it out in Internet Exploder. It threw an exception within the framework that prevented it from rendering.

So the hunt for the solution began. I passed different objects to the Timeline constructor. I experimented with editing the framework where the exception occurred. I tried running the commands that were failing in the developer console to figure out what was wrong. I tried to put a new Timeline with a timeout to force the DOM to refresh. I tried all sorts of things.

It was all in vain. In the end, an update of the framework was what fixed the issue after I logged a bug. Their support was friendly and quick to fix the issue. The framework does a marvellous job at visualising Timeline data. Have not experimented with the other charts, but if they are as easy to use and well documented as the Timeline, it should be easy to set those up.

Moral of the story: keep your packages up to date for the best result.

How to target mobile devices: app or responsive site?

A couple of weeks ago, a colleague asked if I had build apps before. I said “No, I’m not a big fan of apps”. He was kind of surprised as apps are popular and will be more and more in demand. We had a discussion about it and agreed to disagree. So I decided to write my thoughts down. Let me give you the short answer right away: they’re both good choices, but for different reasons and you’ll need to look at your own business needs (or interests) to determine which is right for your company (or you).

Continue reading “How to target mobile devices: app or responsive site?”