1 Reply Latest reply on Jan 23, 2012 12:20 AM by Darryn Campbell

    Error trying to open database:

    Peter Arcuri

      Customer is using SQLite database for thier application that was tested with various mobile browsers and Chrome for desktop. When pointing to the website with RhoElements an error occurs when opening the database. The specific error is:

       

      Error trying to open datatabase Error:

      Security_ERR: DOM Exception 18

      code: '455'

       

      Any insight would be greatly appreciated.

       

      Below is the source code for reference:

        LocalDBClass.prototype.InitDB = function () {

            try {

                if
      (window.openDatabase) {

                    this.DB
      = openDatabase("EasyTouchDB", "", "EasyTouch
      Database",

        1024 * 1024 * 5);

                    if
      (!this.DB) {       
      return "Failed to open the database. Have you allocated enough
      space?";

                    }

                    else {              
      return this.DB;

                    }

                }

                else {

                    return
      'Databases are not supported in this browser.';

                }

            }

            catch (error) {

                return
      "Error trying to open database " + error;

       

       

          }

       

       

      }