Status

addons.mozilla.org Graveyard
Developer Pages
RESOLVED INVALID
9 years ago
2 years ago

People

(Reporter: bhaskar, Unassigned)

Tracking

Details

(Reporter)

Description

9 years ago
User-Agent:       Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322)
Build Identifier: 

function selectDataFromBookmark() {

var file = Components.classes["@mozilla.org/file/directory_service;1"]
                     .getService(Components.interfaces.nsIProperties)
                     .get("ProfD", Components.interfaces.nsIFile);
file.append("places.sqlite");
var storageService = Components.classes["@mozilla.org/storage/service;1"]
                        .getService(Components.interfaces.mozIStorageService);
var mDBConn = storageService.openDatabase(file);
alert ("mDBConn:" +mDBConn);

var statement = mDBConn.createStatement(" SELECT * FROM  moz_bookmarks" );
alert("statement" +statement);

   statement.execute();
    statement.reset();
 }

Reproducible: Always




I wrote a java script function that display all the Bookmark data from local storage but I could not? what is the error in this function
This is not an AMO bug.  If you need assistance writing an addon try #extdev on irc.mozilla.org.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → INVALID
(Assignee)

Updated

2 years ago
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.