Hi,
I have ported my app to Windows Phone (using the export function) and ran it using the emulator in Visual Studio.
The app works fine in IOS and Android, but the "on-click" script below does not seem to work in Windows Phone, can you tell me where I'm going wrong please?
Basically, the "createmotorwaylist function is called at startup - and this runs fine.
When the list member is clicked on, it should call "createjunctionlist" and pass the row number selected, this does not seem to work.
code
function createmotorwaylist()
{
var listelement=" "
var data = ['M1','M2','M3','M4','M5','M6','M6(T)','M8','M9','M11','M18','M20','M23','M25','M26','M27','M32','M40','M42','M45','M48','M49','M50','M54','M55','M56','M60','M61','M62','M66','M69','M73','M74','M77','M80','M90','M180','M275','M602','M621','A1','A1(M)','A2','A3','A3(M)','A5','A7','A8','A9','A11/A14','A14','A20','A27','A30','A38','A38(M)','A42','A46','A50','A55','A64','A68','A75','A76','A77','A78','A82','A83','A85','A87','A90','A92','A95','A96','A168','A229','A303','A417','A419','A420/ A419','A494','A550','A556','A666','A701','A702','A720','A725','A726','A737','A823','A830','A835','A887','A889','A898','A902','A956','A985','Antelope','31297'];
var html =" "
for(var i=0; i<data.length; i++)
{
html = "<tr id='mrow_" + i + "'><td><p class='solidm' onclick='createjunctionlist(" + i + ");'> "+data+" </p></td></tr>"
listElement = $(html);
Appery('mlist_div').append(listElement);
}
listElement.listview();
}
function createjunctionlist(rownumstr)
{
console.log("createjunctionlist");
/code