You are not being annoying, I simply forgot about the suggestion to use
content script in accordance to your trial of making them work on extension
pages. Sorry.
You can control your own extension pages, so there is no need to activate
any kind of content scripts on them.
The content scripts enhance external pages (web pages), since you cannot
touch them otherwise.
I suggested using a content script for the communication, because a regular
webpage does not know about your extension, so it will not send any message
to it.

In case you are talking about an extension page, simply put the message
receiving event in the script of the extension page, instead of in a content
script.

Basically, you send a message to the extension from the toolstrip, the
extension page receives the message and act on it, the toolstrip waits for
the next message to be received before continuing with the rest of the
actions.

Note that I still have not actually dealt with message events, so I still
cannot advise technically enough, but I have read the suggestions over the
last months and that was the main idea.

☆PhistucK


On Mon, Jun 15, 2009 at 08:32, disya2 <[email protected]> wrote:

>
> PhistucK,
>
> I'm not sure we are talking about the same things.
> My question was:
> "I'd like to have a modal dialog,
> i.e. dialog which would pause extension script execution until dialog
> is closed."
>
> Your answer
> "You can send a message to the _content script_ and act upon receiving
> a
> completion message back."
>
> My next question
> "For communications between extension
> script and the page I proposed to use _content-script_. According to
> match-patterns scheme can not be chrome-extensions://. Did I miss
> something?"
>
> Your answer:
> > Why using a _content script_ for a self controlled chrome-extensions
> page?
>
> My answer:
> Because I need to communicate between my extension script and window
> opened by window.open("my_dialog.html"). Where my_dialog.html is
> placed inside extension, i.e. it has chrome-extnsion://02...ff/
> my_dialog.html url.
>
> Sorry for being annoying,
> Denis
> >
>

--~--~---------~--~----~------------~-------~--~----~
Chromium Discussion mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-discuss
-~----------~----~----~----~------~----~------~--~---

Reply via email to