Problem with canavs toDataUrl in IOS6

blunderboy

New member
Jan 3, 2013
1
0
0
Visit site
I am using HTML5 canvas to draw some scribble on canvas.
Used toDataUrl() method to convert the drawn scribble into string (Base64) and then re-using that string for setting background of some div.

Here is partial code:-
var dataString = this.canvas.get(0).toDataURL("image/jpeg");
$("#someElt").css({'background':'url(' + dataString + ') no-repeat center #000'});

I am seeing a blank image.
This code is also working perfectly on IOS-5.

Can anybody put some light on this ? What could be the issue ?
 

Trending Posts

Members online

Forum statistics

Threads
260,020
Messages
1,765,342
Members
441,221
Latest member
CØR