calling a FM script from javascript in webviewer does not work in Filemaker 17

Discussion created by gcatnine on May 27, 2018
Latest reply on Feb 14, 2019 by cloudmeister

MAC OS High Sierra 10.13.4 (17E202)

Same on Windows 10

Filemaker 17


The file could be both local or  hosted on a FM Server


When calling a FM script from a JavaScript function in a web viewer I got this message:

Impossible to open the file "filename" (this is the file name of the open file). The host is not available, or the file does not exist in that host (translation).


The code is (all backslashes are taken out):

theURL = "fmp://$/" & Get ( FileName ) & "?script=ScriptName&param= ScriptParameter";

window.location = theURL ;


It works on FM 16, FM 15