ok...i got it to grab the 'side' variable...thx so much guys...now to
get it to grab the rest... :)

On Dec 13, 11:58 am, PAEz <[email protected]> wrote:
> I just went through this with someone and maybe it could help 
> you....http://www.chromeplugins.org/google/chrome-plugins/new-ext-better-gma...
> ...I didnt test it, but he said it works
>
> On Dec 14, 4:11 am, hexid <[email protected]> wrote:
>
>
>
> > ok...but i can't get the examples to work...they don't send or recieve
> > anything in the log...
>
> > On Dec 13, 10:57 am, PhistucK <[email protected]> wrote:
>
> > > Yes, it is the same localStorage among theOptionspageand the Background
> > >page, butcontentscripts do not have access to the localStorage of the
> > > extension, that is why you need to send a request.
>
> > > ☆PhistucK
>
> > > On Sun, Dec 13, 2009 at 19:30, hexid <[email protected]> wrote:
> > > > hmm...thats weird because i changed my backgroundpageto declare some
> > > > vars and store the localstorage values into them and works fine...just
> > > > still having issues sending it to thecontentscript...
>
> > > > On Dec 13, 4:49 am, PhistucK <[email protected]> wrote:
> > > > > You cannot really do that.
> > > > > What you need to do, is to save theoptionsinto the localStorage, like
> > > > you
> > > > > are doing right now. But since theoptionspageis not a backgroundpage
> > > > > (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 backgroundpagethat its only purpose it to receive a message
> > > > from
> > > > > thecontentscript 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 thecontentscript 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]<chromium-extensions%2Bunsu
> > > >  [email protected]>
> > > > .
> > > > For moreoptions, visit this group at
> > > >http://groups.google.com/group/chromium-extensions?hl=en.

--

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