Cool thanks!  It looks like it doesn't work currently out of context
of the extension, but within the extension's commandline it works
totally fine.

On Sep 1, 11:39 pm, Marcos Aruj <[email protected]> wrote:
> this._database =
>       window.openDatabase("test", "1.0", "test Database",  250 * 1024);
>
> if (!this._database) {
>   // TODO: handle error.
>
> }
>
> //Arguments is an Array.
>
> this._database.transaction(function(aTransaction) {
>   aTransaction.executeSql(aSQLQuery, aSQLArguments, successCallback,
> errorCallback);
>
> });
>
> successCallback : function (aTransaction, aResult) {
>   var length = aResult.rows.length; //number of rows in result set.
>   var rowsAffected = aResult.rowsAffected; //rows affected, applies for
> update, delete statements...
>
> }
>
> errorCallback : function(aTransaction, aError) {
>   var message = aError.message;// error message
>
> }
>
> Hope this helps.
>
> Best regards,
>
> Marcos
>
>
>
>
>
> On Tue, Sep 1, 2009 at 8:40 PM, Scott Ferguson <[email protected]> wrote:
>
> > Could you provide a quick demonstration of how to use openDatabase()?
> > Documentation is sketchy right now, it'd be much appreciated.
>
> > On Sep 1, 5:00 pm, "Mike H." <[email protected]> wrote:
> > > i made an ad blocking extension two months ago that uses the database and
> > > its working fine... i meant to release it but haven't gotten around to
> > it.
>
> > > On Tue, Sep 1, 2009 at 4:10 PM, Scott Ferguson <[email protected]>
> > wrote:
>
> > > > So I see that openDatabase() is an available call but is it working in
> > > > the latest Chromium builds?  Or maybe I just can't find the
> > > > appropriate API documentation for it?
>
> --
> Marcos Aruj Alvarez
> Ingeniero de Software
> -------------------------------
> [email protected]
> -----
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to