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
SumiGhosh
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?

 

Please use plain text.
BlackBerry Development Advisor
chadtatro
Posts: 619
Registered: ‎10-01-2009
My Device: Z10
My Carrier: Bell

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?

Chad Tetreault | App Development Consultant | BlackBerry Developer Relations | developer.blackberry.com | @chadtatro
Please use plain text.
Developer
peardox
Posts: 1,229
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!
Please use plain text.
Developer
SumiGhosh
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?
Please use plain text.