I am trying to let a user select text and based on the selected text
create a context menu item.
For example:
if the selected text is 303-393-3939 I want a context menu "dial 303-393-3939"
if the selected text is "3032 drury lane colorado springs co 48483" I
want a context menu item "map this location"
I've encountered a major problem.
The code is described here:
http://stackoverflow.com/questions/9550090/chrome-extension-context-menu-not-working
Basically, if I remove the previous context menu items using code like so:
chrome.contextMenus.removeAll(function(){
chrome.contextMenus.create({
"title": "note type = " + notification_type,
"contexts":["selection"],
"onclick": genericOnClick
});
});
then the click event on the context item never fires when selected.
Has anyone done what I'm trying to do? Are there any extensions out
there that do this?
Thanks!
phil
"dial %s"
phil
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.
For example, if the selected text is a street address, I don't want a
"dial" option in the context menu. I want it to be "map this
location" in the context menu.
Or am I missing something?
Thanks for your reply.
phil