5 msgCan't subscribe to podcasts with new firefox
3 msgCannot use Internet Explorer
8 msgzipped version of FF 2.0.0.4
10 msgHow can I move the Tabs Toolbar to the bottom o...
1 msgUse more than 1 icon

Writing a Select Text Extention
\ MMilkin (22 Jun 2007)
. \ MMilkin (22 Jun 2007)
. \ Nir (23 Jun 2007)

5 msgTurn off 'install missing plugins' message bar?
5 msgSaved links disappear -- Why?
8 msgAdd-on to provide multi-column Bookmark display?
11 msgStart/Favorites error message
1 msgTAB / Sub TAB menu system
3 msgCan't save the web page
6 msgNeed Firefox extension to display image dimensi...
5 msgno sound on foxfire browser...
3 msgweb page jumps up and down
3 msgDid css in DOM and linked stylesheet supposed t...
15 msgUser agent switcher vs IEtab
2 msg'Assert in LSP'
7 msgSetting how FF 1.5.0.12 handles dl'd files
5 msgFirefox Shows Hidden Bookmarks
Subject:Writing a Select Text Extention
Group:Mozilla-support-firefox
From:MMilkin
Date:22 Jun 2007


I'm writing a Firefox extension to select text.

How do I specify the selection in the function call?

<popup id="contentAreaContextMenu">
<menuitem id="helloworld" label="Select It" accesskey="T"
insertafter="context-stop" oncommand="SelectCopy( );"/>
</popup>


I tried running this with void and wrote a function to test this.

var = window.getSelection();
alert("selected text= " + txt);

This always prints null even when I use the toString() I still get
null. Is there an easy way to specify selections?

_______________________________________________
support-firefox mailing list
support-firefox
https://lists.mozilla.org/listinfo/support-firefox
To unsubscribe, send an email to support-firefox-request?subject=unsubscribe


© 2004-2008 readlist.com