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
racsus
Posts: 40
Registered: ‎04-27-2010
My Device: BOLD
Accepted Solution

problem opening database

Hi, I am new using database SQLite in blackberry, I have copied the code of weather sample, and I call the function initializeDB() that calls to openDB().

 

function openDB() {
    if (db)
        return;

    if (!window.openDatabase) {
        alert("Backward compatibility not yet implemented.");
        return;
    }

    db = openDatabase("Rutas", "1.0", "Weather", 200000);
}

 

The problem is ever get me false the line if (!window.openDatabase) {,

 

Where is the problem? What exactly do the function window.openDatabase? I have to create some database before?

 

thanks,

Please use plain text.
Developer
Silaryn
Posts: 37
Registered: ‎12-24-2010
My Device: Tour

Re: problem opening database

Is this error occuring in the 5.0 or 6.0 operating system? Do you have the html5_init.js file included in your project?

Please use plain text.