https://chrome.google.com/extensions/detail/pgphcomnlaojlmmcjmiddhdapjpbgeoc
Hi Chrome Extension experts, I wrote this extension, and it works well for me. I am on Chrome 4.0.249.25 But, some people claim the selected text does not appear for them. Can you help me by saying why the content script may not send the selected text to the background page sometimes? The Published code may not be accessible, so I am giving the pertinent details inline here: == infopasser.js summaryText(); // window.addEventListener("mouseup", summaryText); function summaryText() { console.log("Being Called"); chrome.extension.sendRequest( window.getSelection().toString() ); } == background.html var subjectPrefix = ''; var title = ''; var url = ''; var summ = ''; chrome.extension.onRequest.addListener( function(conn) { summ = conn; }); // From = <whatever gmail account is logged in; If not logged in, redirects to login page> // To = <Unfilled> // [TODO: In the next version, may provide some Options for favorite recipients] // Subject = [Interesting Page] <Page's Title> // Body = Summary Selection + URL chrome.browserAction.onClicked.addListener( function(tab) { // chrome.tabs.executeScript(null, {file: "infopasser.js"}); title = tab.title; url = tab.url; makeGmailWin(summ); }); == Some people say they do not get the selected text. I doubt this is an issue with the Chrome version. thanks much, anand -- You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to chromium-extensi...@googlegroups.com. To unsubscribe from this group, send email to chromium-extensions+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en.