JQUERY not working Jun 26, 2017 By Ashok Kumar Hi. I want to hide the menu using JQUERY code. I am using the following code: $(‘.area-secondary’).hide() I have used inspect element in chrome to find the class of the element that I want to hide but it's not working. What should be done here? Thanks
Leslie McKerchie Staff almost 7 years ago06/26/17 at 7:44 pm (UTC) Hello Ashok, You can choose within your player options if you would like a menu to display or not. In addition, if you need it custom for certain slides, you can choose via slide properties. If you need further assistance with your actual code, hopefully someone in the community can chime in to assist.
Knut Jackowski almost 7 years ago06/27/17 at 11:56 am (UTC) Hi, I just tried your code, changed the ‘.area-secondary’ to '.area-secondary' and it worked. So probably it is only the typo in the string delimiters.
Leslie McKerchie Staff almost 7 years ago06/27/17 at 1:13 pm (UTC) Ah, thanks for popping back in to share Knut.
Jim Morgan almost 7 years ago06/30/17 at 4:16 pm (UTC) Ashok, did you figure this out? I am having the same issue as you.
Knut Jackowski Jim Morgan almost 7 years ago06/30/17 at 4:53 pm (UTC) Does your code throw any error messages to the console?
Jim Morgan Knut Jackowski almost 7 years ago06/30/17 at 4:56 pm (UTC) Sure does... Actionator::exeJavaScript - this.exeUserJs is not a function Thanks, Jim
Ashok Kumar Author almost 7 years ago07/01/17 at 11:22 am (UTC) The code is working when I run it in the console. But not working if I do it using trigger.
Knut Jackowski almost 7 years ago07/03/17 at 1:14 pm (UTC) I have created two storyline example projects, where it works (at least in the HTML5 output). One with jQuery and one with the same functionality (toggle the visibility of the menu) with plain JavaScript. Both do not work in the preview, like all JS-triggers, only in the published projects. js_toggle.story jquery_toggle.story
8 Replies
Hello Ashok,
You can choose within your player options if you would like a menu to display or not.
In addition, if you need it custom for certain slides, you can choose via slide properties.
If you need further assistance with your actual code, hopefully someone in the community can chime in to assist.
Hi,
I just tried your code, changed the
‘.area-secondary’
to'.area-secondary'
and it worked.So probably it is only the typo in the string delimiters.
Ah, thanks for popping back in to share Knut.
Ashok, did you figure this out? I am having the same issue as you.
Does your code throw any error messages to the console?
Sure does...
Actionator::exeJavaScript - this.exeUserJs is not a function
Thanks,
Jim
The code is working when I run it in the console. But not working if I do it using trigger.
I have created two storyline example projects, where it works (at least in the HTML5 output).
One with jQuery and one with the same functionality (toggle the visibility of the menu) with plain JavaScript.
Both do not work in the preview, like all JS-triggers, only in the published projects.
This discussion is closed. You can start a new discussion or contact Articulate Support.