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

Posts: 23
Registered: ‎04-29-2010
My Device: Storm 9500
My Carrier: Vodafone

change LoadingScreen with Javascript



In my config.xml I have a color for the body of the widget:


<rim:loadingScreen backgroundColor="#004179"


Is there any way to change that color by javascript code? I tried this but not

document.body.style.color = 'white';



Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: change LoadingScreen with Javascript

In a BlackBerry widget the rendering surface of a screen sizes to the size of your HTML content.  If your content isn't as tall as the screen you will see the loading screen background color showing up on your screen.  


There isn't a way to change the loading screen background color via JavaScript.  However there is a way to make sure that your body background color fills the screen.


This tip can be found in the Tips & Tricks thread about half way down posted by iamtony:


Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter