hey all
how must it look like when I would start 2 applications from 2 links (image with link) in a widget with the S60UID?
in the html:
<input type="image" onclick="launchApp('img4')" value="LaunchApp"><img id="img4" src="pic/picture1.png" width="80" height="80" align="center"><br>
how musst the second image-link look to work with the .js-file?
------------------------------
and in the .js (I only want to start an app - not this part with the green/red symbol of an error like in the example):
// Launch application
function launchApp(imgId)
{
// get the appid by calling the getList()
var appid = prompt("Please enter the AppId", "s60uid://0x101f4cce");
if(appid == "" || appid == null)
return;
var opt = new Object();
opt.Mode = "Standalone";
var criteria = new Object();
criteria.ApplicationID = appid;
criteria.Option = opt;
try {
var result = so.IAppManager.LaunchApp(criteria);
checkError("IAppManager::launchApp",result,DIV_ID,imgId);
}
catch (e) {
showIMG(imgId,"no");
alert ("launchApp: " + e);
}
}
-------------
It would be great if someone could help me :-)
Mike


Reply With Quote

