webview - external url assistance
I am working with a tableview and am trying to use the following code to incorporate a webview when clicked but nothing happens when I test it. Any suggestions?
{title:'Student Tickets Login',
backgroundImage:'images/tableview/off_3.png',
hasChild:true,
url:'https://oss.ticketmaster.com/html/home.htmI?SPSID=0&SPID=2996&&DB_OEM_ID=7700&team=usf&l=EN&STAGE=1&CNTX=10477925&out=1',
selectedBackgroundImage:'images/tableview/on_3.png', leftImage: 'images/tableview/phone_photogallery.png'}
my event listener is as follows:
tableView.addEventListener('click', function(e)
{
if (e.rowData.test)
{
var win = Titanium.UI.createWindow({
url:e.rowData.test,
title:e.rowData.title
});
Titanium.UI.currentTab.open(win,{animated:true});
}
});
1 Answer
-
What does rowData.test ? In the row definition I see no test variable.
I think you wanted to use rowData.url