Results 1 to 3 of 3

Thread: <a href> in list items not working?

  1. #1
    Sencha User ksumarine's Avatar
    Join Date
    Feb 2012
    Posts
    16
    Vote Rating
    0
      0  

    Exclamation Answered: <a href> in list items not working?

    Hi,

    I would like to create a link for addresses within my list items. I have telephone numbers and emails working currently, but links for addresses do not work. Also, I created a "button" (which is just a linked image) to google maps. This doesn't work either. See attached image of a list item...

    Screen Shot 2012-02-15 at 11.42.51 AM.jpg

    I would like this button to open the Maps app on the iPhone. I know Sencha Touch has a map component, but we would like to use the native app for this. Right now I can't tap on the image whatsoever.

    Any suggestions?

  2. I opened up app.js of the list example in beta3 and updated the itemTpl to just show this:

    Code:
    itemTpl: '<div class="contact2"><a href="http://www.sencha.com">Test</a></div>',
    Which shows a link for ever row. I can tap on that link and it will take me to sencha.com

  3. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1381
      0  

    Default

    I opened up app.js of the list example in beta3 and updated the itemTpl to just show this:

    Code:
    itemTpl: '<div class="contact2"><a href="http://www.sencha.com">Test</a></div>',
    Which shows a link for ever row. I can tap on that link and it will take me to sencha.com
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  4. #3
    Sencha User ksumarine's Avatar
    Join Date
    Feb 2012
    Posts
    16
    Vote Rating
    0
      0  

    Default

    Have you tried it on a device? Specifically and iPhone? When I run it in the browser it will work, but when I compile in Xcode and test in on the phone or in the simulator, it doesn't work.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •