google-chrome-extension


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

Related Links

Chrome Extension - Detecting New Posts on a 4chan thread
Chrome Extension Template (Regex Filter) needed
Tricking a javascript code to think it has a focused window?
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]
RequireJS not loaing JavaScript in Firefox WebExtensions add-on

Categories

HOME
ms-access
arduino-uno
winforms
oracle11g
activiti
ngrx
google-api-php-client
layout
tesseract
adb
electronics
angular-ui-bootstrap
pivotal-cloud-foundry
nano-server
quickfix
lombok
ef-migrations
sms-gateway
jtextfield
visjs
ml
ehcache
excel-2007
p-value
numerical-methods
chromebook
web-api-testing
minitab
atlassian-crucible
file-rename
madlib
binary-data
google-sites-2016
catel
accelerate-framework
hilbert-curve
sqlite2
android-mediaprojection
password-encryption
midl
dotcover
azure-application-gateway
jedis
logparser
hls.js
pebble-watch
tactic
lift-json
dtexec
epson
spring-mongodb
dynamics-sl
mediaelement
jquery-filter
heidisql
elements
login-control
nsfilemanager
ctest
oauth2client
revolution-r
asp.net5
ibaction
kineticjs
system.reflection
gui-test-framework
rdtsc
device-manager
preferences
bitcoinj
dml
mechanize-ruby
jboss-weld
java.nio.file
openlaszlo
dbconnection
dataservice
bulkloader
easy-install
flash-builder4.5
chronoforms
type-equivalence
simba
cisco-jtapi
first-responder
online-compilation
gwt-ext
libc++
horizontal-accordion
adrotator
avatar
xetex
sustainable-pace
post-build
paul-graham

Resources

Encrypt Message