i'm using xui in a photegap project as it's going pretty well except that, when using the swipe plugin, I can't find a way to get the tapped element id attribute.
Can anyone help me on thie one?
Thanks
i'm using xui in a photegap project as it's going pretty well except that, when using the swipe plugin, I can't find a way to get the tapped element id attribute.
Can anyone help me on thie one?
Thanks
The callback that you pass into the
swipemethod gets passed the touch event object as the first parameter.As such, you can check out the Touch Event documentation, especially the
touchesarray ofTouchobjects; theseTouchobjects have atargetattribute that gives you a direct reference to the element that the touch event started on.