Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9289059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T20:04:31+00:00 2026-06-18T20:04:31+00:00

I created List using sencha touch 2. var aroundList = Ext.create(‘Ext.List’, { itemCls :

  • 0

I created List using sencha touch 2.

var aroundList = Ext.create('Ext.List', {
    itemCls : 'my-dataview-item',
    id : 'aroundMeList',
    itemTpl : '<div><img style="padding:1px; border-style:solid; border-width:1px; border-color:{trustColor}" src="' + localStorage.httpServerPrefix + '{imageURI}"/><span id="name">{fullname}</span><span id="time">{time}</span><p id="msg">{text}<span id="count">&nbsp;{replyCount}&nbsp;</span></p><p id="dist">&nbsp;< '+localStorage.radius+''+localStorage.unit+' '+'&nbsp;</p></div>',
    store : aroundStore,
    listeners : {
        select : {
            fn : this.onMessageClickedInAround,
            scope : this
        }
    }
});

I am getting output like this (Not exactly but, something like this)

enter image description here

when user clicks first row or first item in the List, i am calling onMessageClickedInAround method (this method is for showing messages from that user), you can see the above code.

now i have a requirement that, when the user clicks any picture in the List, i need to show that corresponding Profile page (that is, one user can see others profile by clicking image in the List), is there any way i can do this ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T20:04:32+00:00Added an answer on June 18, 2026 at 8:04 pm

    If your list is populating by a data source, sencha touch will pass the corresponding record to your itemTap listeners. You can do that as something like following.

        listeners : {
            itemtap: function (list, index, item, record) {
                // Show next view based on current record
            }
        }
    

    If you only want to do it on image tap you can check for the event in that listener.

        listeners : {
            itemtap: function (list, index, item, record, senchaEvent) {
                if (senchaEvent.event.target.nodeName === 'img') {
                    // Show next view
                }
            }
        }
    

    You can give a class to <img> and check for that as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created navigaton view using Sencha touch 2. Navigation view has list component
I am developing an app using Sencha Touch 1.1.1. I would like to create
How to reduce the height of list item in Sencha touch 2? My list
Trying to create a new list item in and store the created item's ID
I'm building a Wordpress site using Sencha Touch. I've created a plugin that converts
I created drop down list using java. But i am not aware of creating
I've created a list of files using: file(GLOB_RECURSE DEPLOY_FILES ${PROJECT_SOURCE_DIR}/install/*) I want to install
I have created a dynamic list picker script using Jquery 1.3 and PHP that
I'm trying to access list data using SSRS 2008. I have created an XML
I'm using a web service which returns a list of products. I created a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.