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: 4
Joined: Sun Jun 04, 2017 4:42 pm

touchstart event does not use the right element id

Post by bertrand »

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: 21580
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: touchstart event does not use the right element id

Post by Pablo »

Thanks, this will be addressed in the next update.
bertrand
 
 
Posts: 4
Joined: Sun Jun 04, 2017 4:42 pm

Re: touchstart event does not use the right element id

Post by bertrand »

Tks
Post Reply