Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
HTML5 Databases for Options Pages and Content Scripts?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
GeorgesMouth  
View profile  
 More options Jan 20 2010, 8:26 pm
From: GeorgesMouth <geo...@gadgetopolis.com>
Date: Wed, 20 Jan 2010 17:26:31 -0800 (PST)
Local: Wed, Jan 20 2010 8:26 pm
Subject: HTML5 Databases for Options Pages and Content Scripts?
I tried experimenting with a fancy new HTML5 client SQL database for
my options page. It's really cool. But, I'm not quite seeing how to
best retrieve my user options from the DB.

Anyone know if it's possible to give my content script access to the
option page's DB?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Colin Bleckner  
View profile  
 More options Jan 20 2010, 8:30 pm
From: Colin Bleckner <co...@xmarks.com>
Date: Wed, 20 Jan 2010 17:30:13 -0800
Local: Wed, Jan 20 2010 8:30 pm
Subject: Re: [crx] HTML5 Databases for Options Pages and Content Scripts?
As far as I know you can't directly access your extension's SQL database
directly from a content script.  Instead you'll need to use some sort of
message passing to ask your extension for the setting information you
need: http://code.google.com/chrome/extensions/messaging.html

Colin

On 1/20/2010 17:26, GeorgesMouth wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
hexid  
View profile  
 More options Jan 20 2010, 9:12 pm
From: hexid <nick.curr...@gmail.com>
Date: Wed, 20 Jan 2010 18:12:59 -0800 (PST)
Local: Wed, Jan 20 2010 9:12 pm
Subject: Re: HTML5 Databases for Options Pages and Content Scripts?
Yes, for the time being you need to use message passing to get the
data from the options page...

You can star this bug http://code.google.com/p/chromium/issues/detail?id=30224
to get notices on the status of direct variable and localstorage usage
between background/options/popup pages and the content scripts...

On Jan 20, 6:30 pm, Colin Bleckner <co...@xmarks.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
GeorgesMouth  
View profile  
 More options Jan 21 2010, 5:17 pm
From: GeorgesMouth <geo...@gadgetopolis.com>
Date: Thu, 21 Jan 2010 14:17:42 -0800 (PST)
Local: Thurs, Jan 21 2010 5:17 pm
Subject: Re: HTML5 Databases for Options Pages and Content Scripts?
Thanks. That's cool. Though a slick shared DB/storage solution via Bug
30224 would be way cooler.

On Jan 20, 6:12 pm, hexid <nick.curr...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
hexid  
View profile  
 More options Jan 21 2010, 7:36 pm
From: hexid <nick.curr...@gmail.com>
Date: Thu, 21 Jan 2010 16:36:41 -0800 (PST)
Local: Thurs, Jan 21 2010 7:36 pm
Subject: Re: HTML5 Databases for Options Pages and Content Scripts?
Yea...thats what I am hoping...
Right now my background page consists of about 30 lines of code just
sending the options from the localStorage to the content script...

On Jan 21, 3:17 pm, GeorgesMouth <geo...@gadgetopolis.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
steve_h  
View profile  
 More options Jan 21 2010, 8:25 pm
From: steve_h <howarth.st...@gmail.com>
Date: Thu, 21 Jan 2010 17:25:24 -0800 (PST)
Local: Thurs, Jan 21 2010 8:25 pm
Subject: Re: HTML5 Databases for Options Pages and Content Scripts?
I've played around with this a little. I found that I could create a
database from the content script or the background script but they
were mutually inaccessible, and the popup script could access neither
- I wrongly assumed that the popup script would be able to share more
with the background script than seems to be the case. At present my
app uses messages from the content script to the background script and
vice-versa because I plan to use (background-only) cross-site
scripting to store/retrieve information on a central server (possibly
a google app).  I would like the content script to provide summary
information and maintenance functions ( delete old information - how
big can a database be?).

My (buggy) extension uses a database to cache comments and postings on
a certain blog on which comments and posts frequently disappear
without explanation; It  tries to restore and hilite disappeared
comments (and, in the future, whole posts). I plan to extend it to
allow the deletions to be shared with other users.   The source is
available via a general intro here:
http://www.antievolution.org/cgi-bin/ikonboard/ikonboard.cgi?act=ST;f....
I haven't added it to the google repository because it may be seen as
a little bit "mean-spirited" there.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mohamed Mansour  
View profile  
 More options Jan 21 2010, 8:57 pm
From: Mohamed Mansour <m...@chromium.org>
Date: Thu, 21 Jan 2010 20:57:11 -0500
Local: Thurs, Jan 21 2010 8:57 pm
Subject: Re: [crx] Re: HTML5 Databases for Options Pages and Content Scripts?

Remember, if you created db within the content script, it would be the db
for that url page not the extension.  The best way to do what you want is do
what Colin recommended.

-Mohamed Mansour


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »