Javascript From Themeable Menu

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
Bucky108
 
 
Posts: 120
Joined: Mon Apr 20, 2020 8:15 pm

Javascript From Themeable Menu

Post 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?
User avatar
Pablo
 
Posts: 23595
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Javascript From Themeable Menu

Post 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.
Bucky108
 
 
Posts: 120
Joined: Mon Apr 20, 2020 8:15 pm

Re: Javascript From Themeable Menu

Post by Bucky108 »

Thanks Pablo.

Could there be some kind of workaround?
User avatar
Pablo
 
Posts: 23595
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Javascript From Themeable Menu

Post by Pablo »

I do not have a workaround. This will require a modification in the software.
Bucky108
 
 
Posts: 120
Joined: Mon Apr 20, 2020 8:15 pm

Re: Javascript From Themeable Menu

Post by Bucky108 »

OK Thanks.
Bucky108
 
 
Posts: 120
Joined: Mon Apr 20, 2020 8:15 pm

Re: Javascript From Themeable Menu

Post by Bucky108 »

Pablo thank you for adding support for events in the Themeable menu!
Bucky108
 
 
Posts: 120
Joined: Mon Apr 20, 2020 8:15 pm

Re: Javascript From Themeable Menu

Post 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?

.
User avatar
Pablo
 
Posts: 23595
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Javascript From Themeable Menu

Post 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.
Bucky108
 
 
Posts: 120
Joined: Mon Apr 20, 2020 8:15 pm

Re: Javascript From Themeable Menu

Post 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.
User avatar
Pablo
 
Posts: 23595
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Javascript From Themeable Menu

Post by Pablo »

Do you have a demo project so I can see all your settings?
Bucky108
 
 
Posts: 120
Joined: Mon Apr 20, 2020 8:15 pm

Re: Javascript From Themeable Menu

Post by Bucky108 »

User avatar
Pablo
 
Posts: 23595
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Javascript From Themeable Menu

Post by Pablo »

I assume you are referring to the page 'FG'?
This seems to work correct.
Bucky108
 
 
Posts: 120
Joined: Mon Apr 20, 2020 8:15 pm

Re: Javascript From Themeable Menu

Post 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?
Bucky108
 
 
Posts: 120
Joined: Mon Apr 20, 2020 8:15 pm

Re: Javascript From Themeable Menu

Post 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.
User avatar
Pablo
 
Posts: 23595
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Javascript From Themeable Menu

Post by Pablo »

Are you sure that you are using the latest version of the software?
Bucky108
 
 
Posts: 120
Joined: Mon Apr 20, 2020 8:15 pm

Re: Javascript From Themeable Menu

Post by Bucky108 »

Yes.. 16.1.2
User avatar
Pablo
 
Posts: 23595
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Javascript From Themeable Menu

Post by Pablo »

Your project works for me.

Are you using the 32bit or 64bit version?
Bucky108
 
 
Posts: 120
Joined: Mon Apr 20, 2020 8:15 pm

Re: Javascript From Themeable Menu

Post by Bucky108 »

64 bit version.
User avatar
Pablo
 
Posts: 23595
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Javascript From Themeable Menu

Post by Pablo »

Can you please download the software again to make sure that you have the latest build?
Bucky108
 
 
Posts: 120
Joined: Mon Apr 20, 2020 8:15 pm

Re: Javascript From Themeable Menu

Post by Bucky108 »

Yes I have already done that with the same result.

Also the About under Help shows 16.1.2 (Jan 15 2021)
User avatar
Pablo
 
Posts: 23595
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Javascript From Themeable Menu

Post by Pablo »

Jan 15, 2021 is not the latest build.
Please reinstall.
Bucky108
 
 
Posts: 120
Joined: Mon Apr 20, 2020 8:15 pm

Re: Javascript From Themeable Menu

Post 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.
User avatar
BaconFries
 
 
Posts: 5974
Joined: Thu Aug 16, 2007 7:32 pm

Re: Javascript From Themeable Menu

Post 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.
Bucky108
 
 
Posts: 120
Joined: Mon Apr 20, 2020 8:15 pm

Re: Javascript From Themeable Menu

Post by Bucky108 »

Good to know...thank you.
Post Reply