# Filemaker and Javascript (OnMouseOver)

**URL:** <https://the.fmsoup.org/t/filemaker-and-javascript-onmouseover/1277>\
**Category:** Questions\
**Tags:** javascript, integration\
**Created:** [August 29, 2020, 6:19am UTC](https://the.fmsoup.org/t/filemaker-and-javascript-onmouseover/1277 "2020-08-29T06:19:54Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinD](https://avatars.discourse-cdn.com/v4/letter/k/85e7bf/32.png) [@kevinD](https://the.fmsoup.org/u/kevinD)\
**Post date:** [August 29, 2020, 6:19am UTC](https://the.fmsoup.org/t/filemaker-and-javascript-onmouseover/1277/1 "2020-08-29T06:19:54Z")

</div>

Based on [this tweet](https://twitter.com/sam_oda/status/1298512822821773313) 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 ?

[HoverTest.fmp12](https://the.fmsoup.org/uploads/short-url/pzSNPIWaE8WGpDhdFZxAeZs9EVd.fmp12) (212 KB)

---

<div class="post-metadata">

**Author:** ![steve\_ssh](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/steve_ssh/32/160_2.png) [@steve\_ssh](https://the.fmsoup.org/u/steve_ssh)\
**Post date:** [August 29, 2020, 9:47am UTC](https://the.fmsoup.org/t/filemaker-and-javascript-onmouseover/1277/2 "2020-08-29T09:47:19Z")

</div>

Hello @kevinD

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.

 ![code snippet - check case](https://canada1.discourse-cdn.com/flex030/uploads/fmsoup/original/1X/7838503c57221267c1c1cae9d97a83d5cf5f01ce.png)

HTH,

-Steve

**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...

---

<div class="post-metadata">

**Author:** ![kevinD](https://avatars.discourse-cdn.com/v4/letter/k/85e7bf/32.png) [@kevinD](https://the.fmsoup.org/u/kevinD)\
**Post date:** [August 29, 2020, 12:11pm UTC](https://the.fmsoup.org/t/filemaker-and-javascript-onmouseover/1277/3 "2020-08-29T12:11:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![EfficientBizz](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/efficientbizz/32/252_2.png) [@EfficientBizz](https://the.fmsoup.org/u/EfficientBizz)\
**Post date:** [August 29, 2020, 9:54pm UTC](https://the.fmsoup.org/t/filemaker-and-javascript-onmouseover/1277/4 "2020-08-29T21:54:47Z")

</div>

I have sent Sam Oda an invitation to join the fmsoup. Would be great to meet him here.

---

<div class="post-metadata">

**Author:** ![sam\_oda](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@sam\_oda](https://the.fmsoup.org/u/sam_oda)\
**Post date:** [August 29, 2020, 10:18pm UTC](https://the.fmsoup.org/t/filemaker-and-javascript-onmouseover/1277/5 "2020-08-29T22:18:31Z")

</div>

Hi, Benjamin! Long time no see!

---

<div class="post-metadata">

**Author:** ![sam\_oda](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@sam\_oda](https://the.fmsoup.org/u/sam_oda)\
**Post date:** [August 29, 2020, 10:27pm UTC](https://the.fmsoup.org/t/filemaker-and-javascript-onmouseover/1277/6 "2020-08-29T22:27:03Z")

</div>

Hi, KevinD! I just tested your file in Windows. (changing your code Filemaker to FileMaker) It works.

---

<div class="post-metadata">

**Author:** ![EfficientBizz](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/efficientbizz/32/252_2.png) [@EfficientBizz](https://the.fmsoup.org/u/EfficientBizz)\
**Post date:** [August 29, 2020, 11:23pm UTC](https://the.fmsoup.org/t/filemaker-and-javascript-onmouseover/1277/7 "2020-08-29T23:23:02Z")

</div>

A warm welcome from all of us!  
I‘m glad you joined in.

---

<div class="post-metadata">

**Author:** ![steve\_ssh](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/steve_ssh/32/160_2.png) [@steve\_ssh](https://the.fmsoup.org/u/steve_ssh)\
**Post date:** [August 30, 2020, 1:00am UTC](https://the.fmsoup.org/t/filemaker-and-javascript-onmouseover/1277/8 "2020-08-30T01:00:33Z")

</div>

+1

Hi @sam_oda ! Great to see you here!

---

<div class="post-metadata">

**Author:** ![sam\_oda](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@sam\_oda](https://the.fmsoup.org/u/sam_oda)\
**Post date:** [August 30, 2020, 2:19am UTC](https://the.fmsoup.org/t/filemaker-and-javascript-onmouseover/1277/9 "2020-08-30T02:19:55Z")

</div>

Hi @steve_ssh, nice to see you again! 😀

---

<div class="post-metadata">

**Author:** ![kevinD](https://avatars.discourse-cdn.com/v4/letter/k/85e7bf/32.png) [@kevinD](https://the.fmsoup.org/u/kevinD)\
**Post date:** [August 30, 2020, 6:48am UTC](https://the.fmsoup.org/t/filemaker-and-javascript-onmouseover/1277/10 "2020-08-30T06:48:42Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Bobino](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/bobino/32/194_2.png) [@Bobino](https://the.fmsoup.org/u/Bobino)\
**Post date:** [August 31, 2020, 3:07am UTC](https://the.fmsoup.org/t/filemaker-and-javascript-onmouseover/1277/11 "2020-08-31T03:07:26Z")

</div>

> [@kevinD](#):
>
> I would like to mark steve\_ssh as answer. How can I do that?

see how it is done by reading this post (link to specifi post in thread): [Design Question - #9 by Bobino](https://the.fmsoup.org/t/design-question/1264/9)

---

<div class="post-metadata">

**Author:** ![kevinD](https://avatars.discourse-cdn.com/v4/letter/k/85e7bf/32.png) [@kevinD](https://the.fmsoup.org/u/kevinD)\
**Post date:** [August 31, 2020, 5:13am UTC](https://the.fmsoup.org/t/filemaker-and-javascript-onmouseover/1277/12 "2020-08-31T05:13:47Z")

</div>

Sorry not working for me.  
When I expand the "three dots" below is what I get. See screen shot snippet.

 ![Annotation1](https://canada1.discourse-cdn.com/flex030/uploads/fmsoup/original/1X/3bc84a26a26a729e6e01a8e587382c63d2fcf0e7.png)

---

<div class="post-metadata">

**Author:** ![Bobino](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/bobino/32/194_2.png) [@Bobino](https://the.fmsoup.org/u/Bobino)\
**Post date:** [August 31, 2020, 5:21am UTC](https://the.fmsoup.org/t/filemaker-and-javascript-onmouseover/1277/13 "2020-08-31T05:21:54Z")

</div>

Hi @kevinD ,

I moved this topic to the ER channel. In this channel, I expect you to now see this feature. Can you try again?

---

<div class="post-metadata">

**Author:** ![kevinD](https://avatars.discourse-cdn.com/v4/letter/k/85e7bf/32.png) [@kevinD](https://the.fmsoup.org/u/kevinD)\
**Post date:** [August 31, 2020, 12:28pm UTC](https://the.fmsoup.org/t/filemaker-and-javascript-onmouseover/1277/14 "2020-08-31T12:28:52Z")

</div>

Yes, I marked it as solution.  
Thanks for your efforts.  
best - Kevin
