i used following code to change views in WRT widget. when i test it using n5800 touch screen phone, it is not working properly.
if i select the option menu "gotonextpage" it doesn't go to the second screen
but, after selecting option menu "gotonextpage", if i touch in the screen, it goes to the second screen
what is the problem. pleas help me
function createMenu()
{
// Create a Menu Object
var optionsMenu = window.menu;
// Create Menu items
var m1 = new MenuItem('gotonextpage', 2001);
// Assign a callback function for the menu items
m1.onSelect = menuEventHandler;
// Append two Menu items to Menu
optionsMenu.append(m1);
}
// Implement menu event handler:
function menuEventHandler(id) {
switch (id) {
case 2001:
showsecondscreen();
break;
}
}
function showsecondscreen()
{
document.getElementById("header").innerHTML = "this is second screen";
widget.prepareForTransition('fade')
document.getElementById("firstscreen").style.display = 'none';
document.getElementById("secondscreen").style.display = 'block';
widget.performTransition();
}
thanks in advance

Reply With Quote

