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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
New Contributor
Posts: 6
Registered: ‎02-19-2013
My Device: BlackBerry 9320
My Carrier: BlackBerry

how to listen to the DeviceReady event in Blackberry

how to listen to the DeviceReady event in Blackberry?

Developer
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: how to listen to the DeviceReady event in Blackberry

Check the WebWorks getting started doc, they have an example HTML page with listeners.
--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
Retired
Posts: 245
Registered: ‎09-21-2012
My Device: Q10
My Carrier: Virgin

Re: how to listen to the DeviceReady event in Blackberry

You won't currently use deviceready in WebWorks like you would in PhoneGap. The event is called "webworksready" and you can listen to it by doing the following:

 

window.addEventListener("load", function(e) {
         document.addEventListener("webworksready", deviceready);
      }, false);

You can see more here: http://developer.blackberry.com/html5/documentation/creating_a_bb10_app_2007539_11.html

@erikjohnzon
erjohnson@blackberry.com
New Contributor
Posts: 6
Registered: ‎02-19-2013
My Device: BlackBerry 9320
My Carrier: BlackBerry

Re: how to listen to the DeviceReady event in Blackberry

It is for BB10 webworks right? could you pls help me for BB Smartphones 7 and earlier..