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

New Contributor
Posts: 3
Registered: ‎12-27-2012
My Device: Blackberry10 Dev Alpha
My Carrier: Developer

ContextMenu not working in Blackberry10


    I downloaded 'ContextMenu' example from github.com. Its not working getting 'Uncaught TypeError: Cannot call method 'addItem' of undefined'.

Posts: 245
Registered: ‎09-21-2012
My Device: Q10
My Carrier: Virgin

Re: ContextMenu not working in Blackberry10

Does the blackberry namespace exist? What about the blackberry.contextmenu namespace? If there is an error fetching either of these in JavaScript then the addItem function will not exist and return to you a similar error.


Make sure that the sample you have references webworks.js through the local:///chrome/webworks.js. Is this a device or Ripple issue?