can i fitch the personal id in google reader about next bookmarklet? can i assign a keyboard shortcut to the browser.action? and open in full screen? i'm newbie. :)
2010/1/15 Pedro Junior <[email protected]> > *Yes, but how you said he get the values only once. > * > - > Pedro Junior > > > 2010/1/15 PhistucK <[email protected]> > > Why would he need to do that? >> The localStorage should be persistent across the extension. >> >> ☆PhistucK >> >> >> On Thu, Jan 14, 2010 at 23:31, Pedro Junior <[email protected]>wrote: >> >>> * >>> You must redefine the value. >>> >>> Add this line in save_options function: * >>> *chrome.extension.getBackgroundPage().value = >>> localStorage.getItem("grtag"); >>> * >>> - >>> Pedro Junior >>> >>> >>> 2010/1/14 Gianni <[email protected]> >>> >>>> I have a form in option page for update a LocalStorage but need reload >>>> the extension for working. >>>> >>>> option.html >>>> >>>> <html> >>>> <head> >>>> <title>Next Tag setting</title> >>>> <script type="text/javascript"> >>>> function save_options() { >>>> localStorage.setItem("grtag", >>>> document.getElementById("tag").value); >>>> //chrome.tabs.getSelected(null, function(tab) >>>> {chrome.tabs.remove >>>> (tab.id);}); >>>> } >>>> </script> >>>> </head> >>>> <body> >>>> <form name="form" action=> >>>> <input type="text" placeholder="your tag" id="tag"/> >>>> <button onclick="save_options()">Save</button> >>>> </form> >>>> </body> >>>> </html> >>>> >>>> background.html >>>> >>>> <html> >>>> <head> >>>> <script> >>>> var grurl = 'https://www.google.com/reader/next?go=nextauto&t='; >>>> value = localStorage.getItem("grtag"); >>>> chrome.browserAction.onClicked.addListener(function(tab) { >>>> chrome.tabs.update(tab.id, {url: grurl + >>>> "4022757919936136911" + >>>> "&label=" + value}); >>>> }); >>>> </script> >>>> </head> >>>> </html> >>>> >>>> -- >>>> 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%[email protected]> >>>> . >>>> For more options, 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]<chromium-extensions%[email protected]> >>> . >>> For more options, 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.
