- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
This only provides the full text of the text box... I was hoping to get the selected text...
Now, I know that the selected text is lost when the field loses focus, but I also know that the selected text remains selected until after the exit event fires fully.
To test this, thow an 'xfa.host.messageBox("is it still selected?")' into the exit event of a text box... Run the form, write a line, select a part of it, then exit the text box. You'll get an alert, and the text is still selected. The way I see it, this would be as good a time as any to get the selected text, I just need to know how.
I've tried several javascript methods, but they were all designed for web browsers. The only thing else that is similar that I can find is the selStart/selEnd attributes that get filled with the selection indexes on the change event. I'm just now looking at how these attributes work.
Does anyone know if it's possible to use these attributes to get the selected indexes on exit?
Thanks again for any help.
- Scott
Views
Replies
Total Likes