ericburnley
unread,Sep 23, 2011, 2:16:20 PM9/23/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to phonegap
Ok, I think I figured a way around this.
I started by taking the click event out of the HTML5 MBP code mix, so
the different case lines for touchstart, touchmove, and touchend are
all left alone, but the click event is now set to just break instead
of call the click function in HTML5 MBP's code.
I've included a button on a subsequent page that launches a tel link
to a phone number, and I was having the same issue since the <a href>
link essentially functions like a click event. Using XUI, I had the
touchstart event add on the href attr dynamically and then call fire
click. I was programmatically setting the html to the phone number
since it's pulled from a db anyway:
x$('#PhoneCall').html(Phone).touchstart(function(e) { x$
('#PhoneCall').attr('href', 'tel:' + Phone).fire('click'); });
Might be hack-y, but it seems to be working. If it turns out to be a
solid solution, I may implement it wherever I can to avoid pseudo-
click behavior since upon transitioning pages, I still receive the
Android 'green glow' effect as if I clicked on the new page's element;
the click event is stopped, but it appears as if you clicked on it.
The above code doesn't seem to do it; but I'm still testing it & will
report back if it fails.