Mobile Page – Collapsible events

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
Al_Sin
 
 
Posts: 22
Joined: Wed Jan 23, 2019 1:40 am

Mobile Page – Collapsible events

Post by Al_Sin »

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

Re: Mobile Page – Collapsible events

Post by Pablo »

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.
Post Reply