javascript - Exception when using canvas (0x80040111 NS_ERROR_NOT_AVAILABLE) -
javascript - Exception when using canvas (0x80040111 NS_ERROR_NOT_AVAILABLE) -
i'm having problem writing javascript paint tool. it's unit test , in future used component larger project i'm working on. runs in canvas when seek run it, error message:
error: uncaught exception: [exception... "component returned failure code: 0x80040111 (ns_error_not_available) [nsidomcanvasrenderingcontext2d.drawimage]" nsresult: "0x80040111 (ns_error_not_available)" location: "js frame :: http://rasmvillage/canvasapp/js/lib.js :: <top_level> :: line 52" data: no]
i'm using jquery library
the html nil special. div#container canvas#imageid , canvas#boardid within of it. can help me figure out what's wrong? thanks.
as indicated on canvas drawimage doesn't draw images first time, create sure don't operate on images until images onload
has fired. more advice on image onload static images, including jquery plugin may help.
javascript canvas
Comments
Post a Comment