Message from discussion
HTML5 Databases for Options Pages and Content Scripts?
X-BeenThere: chromium-extensions@googlegroups.com
Received: by 10.150.39.12 with SMTP id m12ls74418ybm.2.p; Thu, 21 Jan 2010
17:57:34 -0800 (PST)
Received: by 10.150.235.11 with SMTP id i11mr2565262ybh.7.1264125454361;
Thu, 21 Jan 2010 17:57:34 -0800 (PST)
Received: by 10.150.235.11 with SMTP id i11mr2565261ybh.7.1264125454322;
Thu, 21 Jan 2010 17:57:34 -0800 (PST)
Return-Path: <m0.interact...@gmail.com>
Received: from mail-yw0-f177.google.com (mail-yw0-f177.google.com [209.85.211.177])
by gmr-mx.google.com with ESMTP id 18si151891ywh.9.2010.01.21.17.57.33;
Thu, 21 Jan 2010 17:57:33 -0800 (PST)
Received-SPF: pass (google.com: domain of m0.interact...@gmail.com designates 209.85.211.177 as permitted sender) client-ip=209.85.211.177;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of m0.interact...@gmail.com designates 209.85.211.177 as permitted sender) smtp.mail=m0.interact...@gmail.com; dkim=pass (test mode) header...@gmail.com
Received: by ywh7 with SMTP id 7so590629ywh.24
for <chromium-extensions@googlegroups.com>; Thu, 21 Jan 2010 17:57:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=domainkey-signature:mime-version:sender:received:in-reply-to
:references:from:date:x-google-sender-auth:message-id:subject:to:cc
:content-type;
bh=6rcfHxJxunDm7FWtlmmFcSL9g7UxDqxhbTUrdRxk1yY=;
b=ksv8D4QbD8SmOSgZEMxzdMRtX4lslMgINZ3xy1q9SQ9HuWZPU0J0T0JpKDI7F05AUi
F66i6VNsuv/NXPbwJjLoH9HC33hJ++qat0OpR84wyWEu2YLu7q5pJZ2hNXCW5CHuuCJ3
iPfogOMWNYdNz6s6IF47ZRm8DHuKivmCSweOw=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=gamma;
h=mime-version:sender:in-reply-to:references:from:date
:x-google-sender-auth:message-id:subject:to:cc:content-type;
b=WDeAbEUCfYdkzIIbIoGbQ6qpglhRADf1q+WiUR0a4CiSchySl+m8IPXWDXSJubrXdt
fwzVhTtEMw9fWRpOhdRQ8I6w4bcDDYwLQoteblx6wPGEJ2JjJPrKmQmJnNh4enXZXK0k
MZErMjgJZj5l7oXKPqZYgITWjF675cR4D1nNI=
MIME-Version: 1.0
Sender: m0.interact...@gmail.com
Received: by 10.100.224.2 with SMTP id w2mr2930812ang.240.1264125451130; Thu,
21 Jan 2010 17:57:31 -0800 (PST)
In-Reply-To: <0fb76dad-2cd5-427a-a71e-9230e1762...@v25g2000yqk.googlegroups.com>
References: <823c3235-548d-4587-a540-53529d4e8...@b10g2000yqa.googlegroups.com>
<0fb76dad-2cd5-427a-a71e-9230e1762...@v25g2000yqk.googlegroups.com>
From: Mohamed Mansour <m...@chromium.org>
Date: Thu, 21 Jan 2010 20:57:11 -0500
Message-ID: <265be4081001211757m22109757na15e6895e5d41...@mail.gmail.com>
Subject: Re: [crx] Re: HTML5 Databases for Options Pages and Content Scripts?
To: steve_h <howarth.st...@gmail.com>
Cc: Chromium-extensions <chromium-extensions@googlegroups.com>
Content-Type: multipart/alternative; boundary=00163623add7775b21047db72411
--00163623add7775b21047db72411
Content-Type: text/plain; charset=ISO-8859-1
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
On Thu, Jan 21, 2010 at 8:25 PM, steve_h <howarth.st...@gmail.com> wrote:
> 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=14;t=6551
> .
> I haven't added it to the google repository because it may be seen as
> a little bit "mean-spirited" there.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Chromium-extensions" group.
> To post to this group, send email to chromium-extensions@googlegroups.com.
> To unsubscribe from this group, send email to
> chromium-extensions+unsubscribe@googlegroups.com<chromium-extensions%2Bunsubscribe@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/chromium-extensions?hl=en.
>
>
--00163623add7775b21047db72411
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Remember, if you created db within the content script, it =
would be the db for that url page not the extension. =A0The best way to do =
what you want is do what Colin recommended.<div><br></div><div><br></div><d=
iv>
-Mohamed Mansour<br>
<br><br><div class=3D"gmail_quote">On Thu, Jan 21, 2010 at 8:25 PM, steve_h=
<span dir=3D"ltr"><<a href=3D"mailto:howarth.st...@gmail.com">howarth.s=
t...@gmail.com</a>></span> wrote:<br><blockquote class=3D"gmail_quote" s=
tyle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I've played around with this a little. I found that I could create a<br=
>
database from the content script or the background script but they<br>
were mutually inaccessible, and the popup script could access neither<br>
- I wrongly assumed that the popup script would be able to share more<br>
with the background script than seems to be the case. At present my<br>
app uses messages from the content script to the background script and<br>
vice-versa because I plan to use (background-only) cross-site<br>
scripting to store/retrieve information on a central server (possibly<br>
a google app). =A0I would like the content script to provide summary<br>
information and maintenance functions ( delete old information - how<br>
big can a database be?).<br>
<br>
My (buggy) extension uses a database to cache comments and postings on<br>
a certain blog on which comments and posts frequently disappear<br>
without explanation; It =A0tries to restore and hilite disappeared<br>
comments (and, in the future, whole posts). I plan to extend it to<br>
allow the deletions to be shared with other users. =A0 The source is<br>
available via a general intro here:<br>
<a href=3D"http://www.antievolution.org/cgi-bin/ikonboard/ikonboard.cgi?act=
=3DST;f=3D14;t=3D6551" target=3D"_blank">http://www.antievolution.org/cgi-b=
in/ikonboard/ikonboard.cgi?act=3DST;f=3D14;t=3D6551</a>.<br>
I haven't added it to the google repository because it may be seen as<b=
r>
a little bit "mean-spirited" there.<br>
<div><div></div><div class=3D"h5"><br>
--<br>
You received this message because you are subscribed to the Google Groups &=
quot;Chromium-extensions" group.<br>
To post to this group, send email to <a href=3D"mailto:chromium-extensions@=
googlegroups.com">chromium-extensions@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href=3D"mailto:chromium-ex=
tensions%2Bunsubscribe@googlegroups.com">chromium-extensions+unsubscribe@go=
oglegroups.com</a>.<br>
For more options, visit this group at <a href=3D"http://groups.google.com/g=
roup/chromium-extensions?hl=3Den" target=3D"_blank">http://groups.google.co=
m/group/chromium-extensions?hl=3Den</a>.<br>
<br>
</div></div></blockquote></div><br></div></div>
--00163623add7775b21047db72411--