Steve St-Laurent Posted September 4, 2006 Posted September 4, 2006 Is it possible to grab a highlighted selection in a Web viewer then have FM 8.5 pass that string to a search engine. I've got this working fine with FM's own fields but can't seem to make it happen with Web viewers. FM's Get(ActiveSelectionStart) and Get(ActiveSelectionSize) both require a field as a starting point.
Raybaudi Posted September 4, 2006 Posted September 4, 2006 Hi don't use Get(ActiveSelectionStart) and Get(ActiveSelectionSize). Use: drag and drop or, within a script (after you had made the selection): Copy[ ] Paste[select; yourDB::yourField]
Steve St-Laurent Posted September 5, 2006 Author Posted September 5, 2006 What I'm trying to do is perform a user-defined Web search on a selection of text. Works great for text fields using the Get functions described above. It's all triggered by a button click. In the case of a Web viewer, you lose your selection as soon as you click the button. See the problem? I can use the GetLayoutObjectAttribute function with the "content" attribute, but it will return the entire Web viewer content, not a selection.
Recommended Posts
This topic is 7006 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now