Closed Bug 479569 Opened 15 years ago Closed 15 years ago

select Bookmark data

Categories

(addons.mozilla.org Graveyard :: Developer Pages, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: b_bprimal, Unassigned)

Details

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
Closed: 15 years ago
Resolution: --- → INVALID
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.