I tried to create 'menu object' in my application(Symbian ^3),but it is not working with <iframe>tag,the menu item disappears soon after loading "gmail".(It works fine with old firmware)
HTML code:
<body onload="init();">
<iframe id="server">
</iframe>
</body>
Javascript code:
var menuid;
function init()
{
createMenu();
document.getElementById('server').src = "http://www.gmail.com";
}
function createMenu()
{
menuhome = new MenuItem("About", 1);
window.menu.append(menuhome);
menuhome.onSelect = menuEventHandler;
}
function menuEventHandler(menuid)
{
switch (menuid)
{
case 1:
alert("Gmail");
break;
}
}
Please help me.I am facing the same problem with Symbian Anna as well as Symbian Belle.I think this issue due to HTML5 browser. Is it? any another solution for wrapping a website?

Reply With Quote


