--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/6c1963b5-376b-4dd4-bd24-9efbd4ca500f%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/groups/opt_out.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/CAH3cagP1TYyYA643wg-cuU1k64WyWE8QMESg%3Dadd29mb%3DJmjUA%40mail.gmail.com.
For more options, visit https://groups.google.com/a/chromium.org/groups/opt_out.
You can use tabs.executeScript() to execute script in the page.
I'd like to message a script in the page itself though and not a content script. Contents scripts and page scripts execute in different contexts, so if I send it to the content script, I can't easily get it to the page script as far as I know.
On Thu, Nov 21, 2013 at 10:31 AM, Joe Marini <joem...@google.com> wrote:
There's also a tabs API for messaging to content scripts in the page. Take a look at chrome.tabs.sendMessage for example.
On Thu, Nov 21, 2013 at 9:11 AM, Ben McCann <b...@benmccann.com> wrote:
Yes, I've read that doc. Unless I'm missing something, it doesn't answer my question
On Thu, Nov 21, 2013 at 3:37 AM, Adrian Aichner <adrian....@gmail.com> wrote:
On Thu, Nov 21, 2013 at 10:39 AM, Ben McCann <benjamin...@gmail.com> wrote:
Hi,What's the best way to pass a message from an extension to a script in a web page? chrome.runtime.sendMessage only goes in the other direction, so it's nor clear to me how you do this or why the API doesn't support it.Thanks,Ben
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/6c1963b5-376b-4dd4-bd24-9efbd4ca500f%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/CAH3cagP1TYyYA643wg-cuU1k64WyWE8QMESg%3Dadd29mb%3DJmjUA%40mail.gmail.com.
--
Joe MariniDeveloper Advocate / Chrome