message passing in a Google chrome extension
There are a few questions about this but none met my needs. I have created an extension and I am trying to communicate between a content script and my options.html. I have been trying to use the chrome.extension.onRequest.addListener and the chrome.extension.sendRequest and neither work at all. No commands are executed or anything. Here is my code:

content script:

    chrome.extension.sendRequest({command:value}, function(response) {});

options.html

    chrome.extension.onRequest.addListener(
	function(request, sender, sendResponse) {
		alert("in onRequest request.command = " + request.command);
		decide_command(trim(request.value));
		sendResponse({});
});

none of the alerts are executed and none of the functions are executed. I even tried using the example in the messaging API page and it didn't trigger any alerts or anything. I have tried a bunch of different combinations like putting the extension ID in the sendRequest to make sure its going to the right place, I have excluded the sendResponse to make sure it wasn't ending too quick. I have debug alerts all over and none get triggered except for the ones before and after the send request command in my content script. So I would assume it either gets executed and fails or something like that. Any help would be greatly appreciated I have been working on this for days.
message passing in a Google chrome extension
===

There are a few questions about this but none met my needs. I have created an extension and I am trying to communicate between a content script and my options.html. I have been trying to use the chrome.extension.onRequest.addListener and the chrome.extension.sendRequest and neither work at all. No commands are executed or anything. Here is my code:

content script:

    chrome.extension.sendRequest({command:value}, function(response) {});

options.html

    chrome.extension.onRequest.addListener(
	function(request, sender, sendResponse) {
		alert("in onRequest request.command = " + request.command);
		decide_command(trim(request.value));
		sendResponse({});
});

none of the alerts are executed and none of the functions are executed. I even tried using the example in the messaging API page and it didn't trigger any alerts or anything. I have tried a bunch of different combinations like putting the extension ID in the sendRequest to make sure its going to the right place, I have excluded the sendResponse to make sure it wasn't ending too quick. I have debug alerts all over and none get triggered except for the ones before and after the send request command in my content script. So I would assume it either gets executed and fails or something like that. Any help would be greatly appreciated I have been working on this for days.