touchstart event does not use the right element id

Issues related to hyperlinks and web site navigation.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/links.html
Post Reply
bertrand
 
 
Posts: 3
Joined: Sun Jun 04, 2017 4:42 pm

touchstart event does not use the right element id

Post by bertrand » Tue May 07, 2019 1:14 am

When I set the "touchstart" event to a text element, the generated code does not look for the right element, "wb_" prefix is missing in the getElementByID.


<div id="wb_UtcLocalT" style="position:absolute;left:6px;top:4px;width:105px;height:26px;z-index:32;" class="clickable" onclick="flipUtcLocal();return false;">
<span style="color:#000000;font-family:'Comic Sans MS';font-size:19px;">UTC/Local</span></div>
...
var el = document.getElementById('UtcLocalT');
if (el.addEventListener)
{
el.addEventListener('touchstart', ontouchstartUtcLocalT);
}
function ontouchstartUtcLocalT(e)
{
flipUtcLocal();return false;
}

User avatar
Pablo
 
Posts: 17620
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: touchstart event does not use the right element id

Post by Pablo » Tue May 07, 2019 6:50 am

Thanks, this will be addressed in the next update.

bertrand
 
 
Posts: 3
Joined: Sun Jun 04, 2017 4:42 pm

Re: touchstart event does not use the right element id

Post by bertrand » Tue May 07, 2019 7:23 am

Tks

Post Reply