chrome.extension.sendRequest won't pass object

Recently I had a bit of trouble with Google’s chrome.extension.sendRequest function used in their Chrome extensions API. I found that I was not able to pass my variable outside of the function. I came accross this post that helped explain the reason why.

Ning Strips Javascript in Pages

Nings ‘Pages’ functionality is great because it lets you add javascript in your code. The other day I  tried pasting in my code and noticed after I saved it that Ning stripped out my javascript. I put in a help ticket and discovered that there is actually a bug in the Ning system.