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

Moving database operations to a web worker



In a bid to improve the responsiveness of my user interface, I attempted to move all non-DOM operations (db access, network access, etc)  to a web worker.


However, I seem to have hit a road block since I cannot make database calls from the worker thread using functions like openDatabase() from the web worker. This is because the html5_init.js file is outside the scope of the web worker and the importScripts function is not supported.


Does anyone know a way around this?

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