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
Contributor
lakmalvbj
Posts: 18
Registered: ‎10-31-2011
My Device: 8900
My Carrier: BAS

JavaScript timeout on Browserfield

[ Edited ]

Hi,

At the very last minute before our app launch we came across following issue. So feed back would be highly appreciated. We have an animation on browser field which works fine in Curve running on 5.0. But a torch running os 6 does not animate it fast enough.

 

function doSlide()
{
if (count >= arr.length) count = 0;

for (var ind = 0; ind < arr.length; ind++)
{
arr[ind].style.display = "none";
}

arr[count++].style.display = "block";


setTimeout(function()
{
doSlide();
}, timeout);
}

 

I have pass 200, 100, 50, 10,  5 to timeout but it does not respond. Is blackberry torch can only handle certaing speed?

 

Please help.

 

Janaka

Please use plain text.
BlackBerry Development Advisor (Retired)
jeffheifetz
Posts: 518
Registered: ‎07-18-2011
My Device: Bold
My Carrier: Rogers

Re: JavaScript timeout on Browserfield

Hi lakmalvbj,

 

Have you tried using CSS3 transitions instead for 6.0? It may perform faster.



1.Please resolve your thread by clicking the "Accept as Solution" button below the post which solved your problem!
2. If any post helps you please click the button below the post(s)
Please use plain text.
Contributor
lakmalvbj
Posts: 18
Registered: ‎10-31-2011
My Device: 8900
My Carrier: BAS

Re: JavaScript timeout on Browserfield

thank you for your reply. Tried css3 but no luck. So I replaced the animation with a image and some text. 

Please use plain text.