Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can FM 8.5 grab a Web viewer selection??

Featured Replies

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.

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]

  • Author

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.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.