Hello,
I am creating mobile page only. The problem is : Events do not work in collapsible element for only mobile page. It is possible to set up events, but events never work.
The idea is to run simple JavaScript when customer opens collapsible. How it can be done?
For example, when I use script like:
var myPage = document.getElementsById("myPage");
myPage.addEventListener('click', function() {
alert('Hello world');
}, false)…
It works on click everywhere on the page except collapsible area.
Thank you,
Alexandre
Mobile Page – Collapsible events
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
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
Re: Mobile Page – Collapsible events
Mobile pages use jQuery mobile. The framework has its own set of events.
https://api.jquerymobile.com/1.4/collapsible/
Note that jQuery Mobile has not been updated since 2014 and is becoming obsolete.
I strongly recommend to build mobile websites with more modern functionality like layout gruid or flexbox.
https://api.jquerymobile.com/1.4/collapsible/
Note that jQuery Mobile has not been updated since 2014 and is becoming obsolete.
I strongly recommend to build mobile websites with more modern functionality like layout gruid or flexbox.