firefox addon - How to get Selected Text into a Variable or a variable from a Database? -


i working on firefox extensions. extension works follows:

  1. whenever user double clicks word on page(any webpage), word selected must stored in variable , sent server find meaning database.
  2. when he/she single clicks @ other place in same document popup showing meaning db should disposed.

any answers?

how write firefox addon? more or less official "how started" question firefox addons. add event listener browser (gbrowser) listen click events. easiest way make server call using xmlhttprequest. that's enough started. come more specific questions when stuck. luck!


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -