12-16-2012 09:23 AM
Hi all. Do onclick events worked on device that supports both trackpad and touchscreen navigation. I'm testing this app using 9900(OS7.1) and notice there's two different behaviour between clicking on element and tapping on element.
For example; the clickable element :
<td x-blackberry-focusable="true" onmouseover="refReject(this)" onmouseout="noRefReject(this)" onclick="submitRemark()">ADD</td>
After user has clicked on ADD submitRemark(), there will be a popup for user to key-in remarks and the textarea is being to receive focus using using setTimeout(function () { focusTest() }, 100)
The focusTest() function:
function focusTest()
{
$('#textArea').focus();
}The strange this is if ADD is click using trackpad, the textarea in the popup will have focus but if I select ADD using touch by tapping on ADD the popup will appear but there's no focus in the textarea. And I notice some of the functions that I add to the buttons in the popup will not work if the popup is being fired using touchscreen.
Can anyone please advise?
Thank you.