I am having some issues performing action clicks on jqPlot items, and I am hoping someone else can shed some light on what is going wrong.
I have a barchart rendered with jqPlot, which attach a click event handler to (on jqPlot chart) using the following code:
$.jqplot.eventListenerHooks.push(['jqplotClick', myClickHandler]);
myClickHandler looks like this:
function myClickHandler(ev, gridpos, datapos, neighbor, plot) {
alert('you have triggered click action');
}
My intention is that by using this simple jqPlot implementation, the alert action will be triggered when a click is delivered on the area inside the chart, including the bar chart item. This works perfectly in any desktop browsers (IE6/7/8/9, Chrome, Safari).
The issue I am having, however, is that when I access the site using iPhone/iPad, everything is rendered perfectly except that the click action specified above behaves strangely.
If I try touching on any bar chart item, it does not alert 'you have triggered click action' - as if nothing is happening.
However, when I tried to click (touch) the empty space of the chart, the alert message fires normally.
Any ideas?