hmm...thats weird because i changed my background page to declare some
vars and store the localstorage values into them and works fine...just
still having issues sending it to the content script...

On Dec 13, 4:49 am, PhistucK <[email protected]> wrote:
> You cannot really do that.
> What you need to do, is to save the options into the localStorage, like you
> are doing right now. But since the options page is not a background page
> (meaning, it is not active in the background, once you close it, it is not
> there anymore), you cannot really communicate to it.
> Create a background page that its only purpose it to receive a message from
> the content script and send a response.
> You can use the "Single one time requests" for that 
> (http://code.google.com/chrome/extensions/messaging.html#simple).
> Send a request in the content script and once you get the response, act (if
> needed)
> .
> ☆PhistucK
>
>
>
> On Thu, Dec 10, 2009 at 15:12, hexid <[email protected]> wrote:
> > nction() {
> >  var filterPosition = document.getElementById("#position").value;
> >  switch(filterPosition)
> >  {
> >  case "top":
> >    $("#home_filter_list").insertBefore("#pagelet_reqbox");
> >    var css = default_css;
> >    break;
> >  case "bottom":
> >    $("#home_filter_list").insertAfter("#pagelet_syndicationbox");
> >    var css = default_css;
> >    break;
> >  case "original":
> >    var css = "#home_filter_list\n{display: block !important;}";
> >    break;
> >  default:
> >    alert("hello");
> >    break;

--

You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en.


Reply via email to