Loading ...
Sorry, an error occurred while loading the content.

1306Re: Manipulating a canvas in an ADSAFE widget?

Expand Messages
  • Douglas Crockford
    May 10 1:24 PM
    • 0 Attachment
      --- In jslint_com@yahoogroups.com, "adam.kumpf" <adam.kumpf@...> wrote:
      > Is it possible to manipulate and draw on a <canvas> element from within an ADSAFE widget? I can select the canvas element, and it exists in the protected ___nodes___ array (which I rightfully understand I can't access), but is there a way to call methods on it that haven't been predefined in adsafe.js?
      > For example, to draw on a canvas you first get the context via element.getContext(contextType). Would ADsafe need to be extended to support such function calls? or is there a way to do it within the existing ADsafe structure?
      > Sorry if this post is slightly off-topic since it is outside of (although related to) JSLint.

      You can use the new getContext method.

      ADsafe is discussed at http://tech.groups.yahoo.com/group/caplet/
    • Show all 2 messages in this topic