Returning an element value from chrome.tabs to a background script
I would like to send a value from the tab html content to my chrome extension background script. Right now I'm using a workaround, that is chrome.tabs.executeScript() to send a code to retrieve data and then send it to my web server via Ajax, and then my background script checks to see if its there in my server. But that's obviously not the right way. Is there a way to get element values and then send it back to the background script? so I can keep working with the value? Thanks!
chrome.extension.sendRequest() has a counterpart chrome.extension.onRequest.addListener() If it's not obvious you can read all about message passing here: http://code.google.com/chrome/extensions/messaging.html
Chrome Extension - Detecting New Posts on a 4chan thread
Chrome Extension Template (Regex Filter) needed
my extension keep getting rejected and i don't know why
Can I use an alias to release a chrome extension?
Chrome Extension - make a ribbon
Minimize developer tools window while debugging a chrome extension
Getting emulated mobile view of a temporarily changed html page
Google Chrome extension communicate with Panel
Chrome Extension error: “Unchecked runtime.lastError while running browserAction.setIcon: Icon invalid."
Listen to Keyboard and Mouse Chrome Hosted App
Is it possible to catch requests from another extension?
getSelection fails on top commercial websites, how to unblock?
Chrome extension to capture video of last few minutes of active tab
when I click the input autocomplete suggestion,the extension popup disappears[close] [duplicate]