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
muh
Regular Visitor
muh
Posts: 1
Registered: ‎07-27-2012
My Device: 9780
My Carrier: AXIS

x-blackberry-focusable does not work

I create a simple page and try it on BlackBerry device but the highlight does not work, can somebody help me to tell what is wrong with my codes here?

<!DOCTYPE HTML>

<html>
<head>
<title>Test Page</title>
<style>
.list {
width: 100%;
display: block;
text-decoration: none;
border-style: solid;
border-color: #CCC;
border-width: 1px;
margin-top: 5px;
padding: 2px;
}

.list:hover {
background-color: green;
color: white;
}
</style>
</head>


<body>
<div class="list" x-blackberry-initialFocus="true" x-blackberry-focusable="true">List 1</div>
<div class="list" x-blackberry-focusable="true">List 2</div>
<div class="list" x-blackberry-focusable="true">List 3</div>
<div class="list" x-blackberry-focusable="true">List 4</div>
<div class="list" x-blackberry-focusable="true">List 5</div>
<div class="list" x-blackberry-focusable="true">List 6</div>
</body>
</html> 

thank you.

Please use plain text.
Developer
Hithredin
Posts: 404
Registered: ‎06-03-2010
My Device: Z10 Red
My Carrier: Free

Re: x-blackberry-focusable does not work

You have to add a line in the description file:
<rim:navigation mode="focus" />
Please use plain text.