Based on this tweet from Osamu Noda ,I tried duplicating it in windows 10 using FM 19 but it doesn't work.
Attached is a similar file where I have a JS onmouseover event , the text turns red on mouseover but the filemaker script is not triggered. Sample file attached.
request someone to take a look at the file. Thanks.
Maybe a windows thing ?
I am not currently at a machine which is current enough to run v.19, but nonetheless, I did see something that might be worth checking in the code in your uploaded file:
You have FileMaker.PerformScript spelled with a lower case 'm', i.e.:
Filemaker.PerformScript
I would suggest checking that detail. JavaScript is case-sensitive, and, unless this feature was specifically implemented with case-insensitivity in mind, I would expect the difference of that one letter to make a difference in whether the code works, or not.
Addendum: Just a note that there is also a check box in the webviewer configuration which I believe must be checked off in order for the JS to use FileMaker.PerformScript. That seems like it might be an easy item to overlook. Since I am only running v.18 on this machine, I am not able to verify whether or not you checked that box...
Thanks steve_ssh.
Tried that and it does'nt work. The documentation requires FileMaker - you are right.
The box in the web viewer to allow javascript is checked.
Thanks sam_oda. After a bit of fiddling it worked.
Apart from the spelling error, not sure what else was wrong. But now its fine.
thanks for trying it out and confirming it works on windows.
best
I would like to mark steve_ssh as answer. How can I do that?