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: 31
Registered: ‎01-06-2011
My Device: 9300
My Carrier: MTN Nigeria

Differences between Browser 6 and Browser 5

I have been re-working a WebWorks application to run on OS 6 and I have noticed a few differences that I thought to point out here. They might have been bugs, quirks or, most likely, failings on my part. First off, observe the code snippet below:



for(var i = 0; i < some_max_value; i++)



The code itself is buggy in the sense that 'continue' should have been 'return'. However, the javascript file is processed in OS 6. I'm not exactly sure how it handles the 'continue' statement. On the other hand, in OS 5, the javascript file will not be processed at all.




the following code snippet doesn't seem to be recognized in OS 6 but it works fine in OS 5:



a_div_element.onclick = 'some_function()';

 to work in both OS's, it has to be changed to the following:



a_div_element.setAttribute('onclick', 'some_function()');


Has anyone else observed any differences?



Ezeozue Chidube
Seamfix Nigeria Limited (www.seamfix.com)