08-02-2012 04:46 AM
Hi i make one list which is scrolling in blackberry 9700 using
<rim:navigation mode="focus" />
. but i am facing some problem .list is scrolling using trackpad but cursor is not display. can you give me some suggestion how to focus in a row and how to display cursor..?
Thanks
08-02-2012 05:08 PM
08-02-2012 08:21 PM
08-03-2012 04:12 AM
08-03-2012 05:26 AM
Do uou have any example .. please share .i need urgently.
Thanks
08-03-2012 05:43 AM
About Focus, have you check you config.xml file to add the line explained there:
08-06-2012 03:28 AM
It is also not working..do you have example or another idea please share..
Thanks
regards
08-06-2012 08:07 AM
Is your alert in the highlight function, fired or not?
08-06-2012 08:17 AM
Hi
i am getting focus on button and alert also. but when i apply same concept in scrolling list (using table) then focus is not coming in row.
please help
unction GetDepartureStationDashboard_callBack(r)
{
document.getElementById('loadingImg').style.visibi
var tabledata = "";
tabledata += "<table x-blackberry-focusable=\"true\">";
for (var i = 0; i < r.length-1; i++)
{
tabledata += "<tr x-blackberry-focusable=\"true\" id=\"i\" x-blackberry-onUp=\"scroll(50)\" x-blackberry-onDown=\"scroll(50)\" onmouseover=\"highlight(this);\" onmouseout=\"unhighlight(this);\">";
tabledata += "<td width=\"30%\">" + r[i].platformNo + "</td>";
tabledata += "<td width=\"30%\">" + r[i].schDepart + " - " + r[i].expDepart + "</td>";
tabledata += "<td width=\"35%\">" + r[i].stationName + " (" + r[i].crsCode + ")" + "</td>";
if(r[i].schDepart == r[i].expDepart)
tabledata += "<td width=\"5%\" align=\"left\"><img src=\"images/correct-icon.png\" width=\"24\" height=\"24\" /></td>";
else
tabledata += "<td width=\"5%\" align=\"left\"><img src=\"images/error.png\" width=\"24\" height=\"24\" /></td>";
tabledata += "</tr>";
}
tabledata += "</table>";
document.getElementById("mainBodyDiv").innerHTML = tabledata;
}
in first row will show hight . but not all
08-06-2012 08:51 AM
Maybe Blackberry is lost with you same ids: Change to
tabledata += "<tr x-blackberry-focusable='true' id='" + i + "' x-blackberry-onUp='scroll(50)' x-blackberry-onDown=\"scroll(50)\" onmouseover=\"highlight(this);\" onmouseout=\"unh
Try also to remove x-blackberry-focusable from the table.
And have a look to the doc:
https://developer.blackberry.com/html5/api/blackbe
It says that if your function "scroll()" does not specifically set the focus (not scroll but set the focus), the focus will remains and never change.