Page 1 of 1

Javascript From Themeable Menu

Posted: Fri Jan 08, 2021 4:58 pm
by Bucky108
Running Javascript from a themeable menu doesn't seem to work (it works fine from a CSS menu).

It this possible to do?

Re: Javascript From Themeable Menu

Posted: Fri Jan 08, 2021 6:26 pm
by Pablo
At the moment this functionality is not available for the Theme-able menu.
I will investigate if this can implemented in a future update.

Re: Javascript From Themeable Menu

Posted: Fri Jan 08, 2021 7:00 pm
by Bucky108
Thanks Pablo.

Could there be some kind of workaround?

Re: Javascript From Themeable Menu

Posted: Fri Jan 08, 2021 8:59 pm
by Pablo
I do not have a workaround. This will require a modification in the software.

Re: Javascript From Themeable Menu

Posted: Fri Jan 08, 2021 10:43 pm
by Bucky108
OK Thanks.

Re: Javascript From Themeable Menu

Posted: Sat Jan 16, 2021 2:44 pm
by Bucky108
Pablo thank you for adding support for events in the Themeable menu!

Re: Javascript From Themeable Menu

Posted: Mon Jan 18, 2021 4:00 pm
by Bucky108
I was very glad to see this but when I actually tried it, it did not work.

Simple test; create a blank page, add a themeable menu, then on one of the item's onclick event add run javascript - e.g. alert('Hello');

Are there parameters in the menu or item properties that have to be set for it to work?

.

Re: Javascript From Themeable Menu

Posted: Mon Jan 18, 2021 4:58 pm
by Pablo
Maybe you have added the event to a parent item?
In that case, it will not work because otherwise the sub menu cannot be displayed.

Re: Javascript From Themeable Menu

Posted: Mon Jan 18, 2021 5:33 pm
by Bucky108
I tried removing all items and subitems and then I added a new item and added the run javascript onclick event to that but it still didn't work.

Re: Javascript From Themeable Menu

Posted: Mon Jan 18, 2021 6:04 pm
by Pablo
Do you have a demo project so I can see all your settings?

Re: Javascript From Themeable Menu

Posted: Mon Jan 18, 2021 6:25 pm
by Bucky108

Re: Javascript From Themeable Menu

Posted: Mon Jan 18, 2021 6:43 pm
by Pablo
I assume you are referring to the page 'FG'?
This seems to work correct.

Re: Javascript From Themeable Menu

Posted: Mon Jan 18, 2021 6:55 pm
by Bucky108
Yes I meant FG (I forgot I had other pages in that project).

I'm using Microsoft Edge ..are you using Chrome or Firefox?

Re: Javascript From Themeable Menu

Posted: Mon Jan 18, 2021 7:05 pm
by Bucky108
I published the page to a test folder on my site:

https://www.goldhealer.com/test/

Tried it in different browsers and I'm not getting the javascript alert.

Re: Javascript From Themeable Menu

Posted: Mon Jan 18, 2021 9:16 pm
by Pablo
Are you sure that you are using the latest version of the software?

Re: Javascript From Themeable Menu

Posted: Mon Jan 18, 2021 9:32 pm
by Bucky108
Yes.. 16.1.2

Re: Javascript From Themeable Menu

Posted: Tue Jan 19, 2021 6:58 am
by Pablo
Your project works for me.

Are you using the 32bit or 64bit version?

Re: Javascript From Themeable Menu

Posted: Tue Jan 19, 2021 2:21 pm
by Bucky108
64 bit version.

Re: Javascript From Themeable Menu

Posted: Tue Jan 19, 2021 3:51 pm
by Pablo
Can you please download the software again to make sure that you have the latest build?

Re: Javascript From Themeable Menu

Posted: Tue Jan 19, 2021 6:42 pm
by Bucky108
Yes I have already done that with the same result.

Also the About under Help shows 16.1.2 (Jan 15 2021)

Re: Javascript From Themeable Menu

Posted: Tue Jan 19, 2021 6:48 pm
by Pablo
Jan 15, 2021 is not the latest build.
Please reinstall.

Re: Javascript From Themeable Menu

Posted: Tue Jan 19, 2021 7:04 pm
by Bucky108
OK I just installed the January 19th version and that worked.

It's still the same version number though so just curious .. was this not a new subversion number? Also in the Jan 15 version it was saying I have the latest version when I clicked check for updates.

Anyway thanks for adding this feature.

Re: Javascript From Themeable Menu

Posted: Tue Jan 19, 2021 7:21 pm
by BaconFries
A simple explanation for this there may have been a "Hot Fix" If this was the case then there is usually a delay before it catches up.
Related topic
Pablo wrote: Mon Sep 28, 2020 5:25 pm Besides regular updates, there are also hotfixes. Usually a hotfix is released a few hours after someone has reported a problem (as an extra service), so they do not have to wait until the next update before this issue get fixed.
Hotfixes do not include a version number increase because this would take a lot of extra time. And the idea of an hotfix is to get an update out as quickly as possible.

Re: Javascript From Themeable Menu

Posted: Tue Jan 19, 2021 7:29 pm
by Bucky108
Good to know...thank you.