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.

FileMaker Web Viewer How do I disable JavaScript Security Message?

Featured Replies

Hello FileMaker Group,

I wrote a little javascript to run a FileMaker script from the web viewer and use a data url in the web viewer to run it. Unfortunately, every time I run it, I get a warning message box that says "An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction." Does anybody know any way to prevent that message from coming up every single time?

Create a a webviewer and a field called "html" and put this javascript code in the field:

In the webviewer define the url calculation as follows:

"data:text/html," & html

Here is the javascript that goes into the html field.

var FMApp;

var FMDocs;

var FMActiveDoc;

var myOpenFile;

FMApp = new ActiveXObject("FMPRO.Application")

FMDocs = FMApp.Documents;

FMActiveDoc = FMDocs.Active;

FMActiveDoc.DoFMScript ("testscript")

FMApp = null

FMDocs = null

FMActiveDoc = null

myOpenFile = null;

Thanks in advance!

Shawn

This is in my humble opinion not a filemaker matter, but merely what security level is implemented in your organization:

http://technet.microsoft.com/en-us/library/bb457006.aspx

--sd

  • Author

Thanks for responding. This is happening on my local desktop computer in my house. Do you know specifically how I could get it to allow that script to run locally? I have played with a few settings but to no avail.

No it's a operating system I only deal with if I really have to, such as lay outing for clients with this inclination. However might you get away with it turning Firefox your default browser.

--sd

  • 1 month later...

Unfortunately, the browser is an embedded windows control. So chasing the system default browser, won't resolve this.

Try adjusting your IE settings. WebViewer should 'inherit' its settings from those made in internet explorer:

Tools>>Internet Options...

Security Tab

Local Intranet - Cutom Level...

ActiveX controls and plug-ins

Automatic prompting for ActiveX controls (Enable)

Binary and script behaviours (Enable)

Download signed ActiveX controls (Enable)

Download unsigned ActiveX controls (Enable)

Initialize and script ActiveX controls not marked as safe (Enable)

RUN ActiveX controls and plug-ins (Enable)

Script ActiveX controls marked safe for scripting (Enable)

Are you trying to pass data back from the javascript which is running in a webviewer, to Filemaker? I have figured out how to do this with the clipboard, and recently, figured out how to do it *without* the clipboard.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.