Hi Brandon, thank you very much for your response.
Yes, not a multipage widget. I am try to have clicking on a button in my main page (main.mobi) to go to any of 5 pages (page1.mobi etc) randomly.
Here is my code but it’s not working
n = Math.floor((Math.random()*5)+1);
switch(n)
{
case 1:
phoneui.gotoPage( 'm1-page1', phoneui.transitions.slideLeft);
break;
case 2:
phoneui.gotoPage( 'm1-page2', phoneui.transitions.slideLeft);
break;
case 3:
phoneui.gotoPage( 'm1-page3', phoneui.transitions.slideLeft);
break;
case 4:
phoneui.gotoPage( 'm1-page4', phoneui.transitions.slideLeft);
break;
case 5:
phoneui.gotoPage( 'm1-page5', phoneui.transitions.slideLeft);
break;
}
This is probably very basic for you, but could you help me as I am new to programming. I tried to watch MobiOne related videos on youtube and read up on the Learning Centre but could not find the solution. Thanks.