Search found 2 matches
- Fri May 09, 2008 11:38 am
- Forum: Document API
- Topic: Example of Javascript Function for setTextSelectionRange
- Replies: 2
- Views: 10048
Re: Example of Javascript Function for setTextSelectionRange
Hi Jay, Thanks alot for the snippet. This worked for me. Also, FYI for anyone else; you can select the entire document by setting the range to a large number such as follows: document.getElementById('Print2FlashDoc').setTextSelectionRange({ headPageIdx: 1, headCharIdx: 0, tailPageIdx: 100, tailCharI...
- Fri May 09, 2008 8:58 am
- Forum: Document API
- Topic: Example of Javascript Function for setTextSelectionRange
- Replies: 2
- Views: 10048
Example of Javascript Function for setTextSelectionRange
Hi, I'm having problems trying to call setTextSelectionRange() via javascript in the browser. I am able to call getTextSelectionRange() and get the coordinates of selected text. I would like to be able to set the selected text via a javascript function. I'm not sure how to handle the "sel" object an...