Titanium Community Questions & Answer Archive

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

webViews in tableRows?

Has anyone had any luck using webViews in tableRows?

This seems to be the only way possible to have href links in the 'title' of the row. (rather like a twitter client might have url links in the 'title/tweet' in a tablerow)

I seem to be getting some inconsistent results.

Any help would be most appreciated.


— asked May 9th 2010 by Kosso
  • iphone
  • links
  • tablerow
  • webviews

3 Answers

  • I haven't tried doing this, but I would recommend against it. The web view is the most expensive and slowest component in Titanium to initialize. Couldn't you use a custom table view layout (examples in the Sink), and then have clickable links in specific portions of the layout? I would recommend trying to use table view layouts and subviews before even bothering to debug web views in table view rows.

    — answered May 10th 2010 by Kevin Whinnery
  • Hi Kevin,

    Thanks. But there has to be a way to do this. Look many iphone twitter clients (eg" Echofon) - all urls, @usernames and #hashtags are clickable on the row.

    Surely, the only way to do this is by using a webView area of some sort on the row?

    I've been in touch with Jeff about this and modified the 'Table with Remote Images 2' demo (which I built originally) to try and find a way.

    Try this test case (which has some comments in it about the issues I'm seeing) http://pastie.org/953428

    In a possibly related issue, the current (1.3.0) way that tables are doing auto-height is broken (in the KS auto-height demo too). The way that the rows seems to animate to get to the right size just looks and feels very wrong. It doesn't feel or look 'native' at all when it does it.

    — answered May 10th 2010 by Kosso
  • Hi again.

    I've just found the 'horizontal layout' demo in KS. I'll give that a go.

    Ya never know captain, it might just work!!! ;)

    — answered May 10th 2010 by Kosso
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.