Hi, > I believe the ctx variable should be: > > var ctx = $('<canvas>')[0].getContext("2d");
I was expecting that a canvas tag exists on the page. If it doesn't it should better be something like this: var ctx = $('<canvas>').appendto('body')[0].getContext("2d"); Christof