Archives for 2012

Avoiding cross-site scripting issues with iframes

At iPaper we often have clients who want to iframe our catalogs as well as interact with these. But when working with iframes, you will run into cross-site scripting limitations if both the parent and child page do not have the same origin. By “same origin”, we mean that these pages have the same protocol […]

Programmatically opening a new tab/window on Mobile Safari

On iOS devices using mobile safari your can easily navigate the user to another website or page using ordinary links and the location object. However, if you want to programmatically open a new tab or window then this is not easily done. Sure, if the method of navigation is a link that a user clicks […]

My thoughts on front-trends 2012

In April of this year I attended the Front-Trends conference in Warsaw, Poland. It was my first time attending a quote on quote frontend conference so my only frame of reference was “backend” type conferences I had attended in the past. The first thing to notice is definitely the girl to guy ratio. I must […]

JavaScript .apply and .call methods

In JavaScript every function/object has a .call() and .apply() method. Both these methods allow you to invoke a method where you override the this reference, essentially making it seem as if it was a method on another function/object; The difference between the two methods is that .call() allows you to pass arguments for the method […]

Mobile safari will dump memory & crash at about 10MB

While designing an application heavy on image usage I ran into issues with Mobile Safari simply crashing and dumping all memory. At first, I did not understand what caused this behavior since I was doing many different things in my application. This seemed to come out of nowhere. I would mostly get these bug reports […]