I am trying out a simple Google Chrome extension, in which I need to communicate between the options page and the background page for getting/setting the options.
I have tried chrome.extension.sendRequest(..) and chrome.extension.onRequest.addListener(..) but with no success!
Am I missing something? Or should I post my code?
In you background.html, you could have something like this:
Now in your options page, you can simply use chrome.extensions.getBackgroundPage. For example in options.html:
Remember one thing, the dev guide is your best friend 🙂
http://developer.chrome.com/extensions/devguide