Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 435
Registered: ‎09-20-2011
My Device: Z10 LE, Playbook, DevAlpha C, 9900, 9380
My Carrier: Vodafone

Listener for an image in canvas

Hi,

 

Is there any way to add listener for an image in canvas. Any libraries available for this?

 

BlackBerry Development Advisor
Posts: 762
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: Listener for an image in canvas

Hello,

 

Could you explain a little more what you're wanting to achieve? Do you just need to know when an image has loaded, or something more?

Developer
Posts: 1,230
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: Listener for an image in canvas

Well, your canvas prob lives in a DIV so just trap the bubble

 

As long as your DIV has an ID you can find out what happens inside it without worrying about much else owing to the bubble




Click the like button if you find my posts useful!
Highlighted
Developer
Posts: 435
Registered: ‎09-20-2011
My Device: Z10 LE, Playbook, DevAlpha C, 9900, 9380
My Carrier: Vodafone

Re: Listener for an image in canvas

Hi,

On clicking the particular image i have to replace the image with other image.

Did any one used event.js?