Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Regular Contributor
iruka
Posts: 79
Registered: ‎09-17-2012
My Device: Torch 9800
My Carrier: DiGi

onclick event on Touchscreen

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.

Please use plain text.