Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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});
}
});
— asked July 14th 2010 by Sean DeChellis
  • external
  • mobile
  • url
  • webview
0 Comments

1 Answer

  • What does rowData.test ? In the row definition I see no test variable.

    I think you wanted to use rowData.url

    — answered July 14th 2010 by Dan Tamas
    permalink
    1 Comment
    • My mistake. This is because my other rows are using:

      test:'team-rosters.js',

      — commented July 14th 2010 by Sean DeChellis
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.