1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    39
    Vote Rating
    5
    Answers
    1
    Zachary1748 is on a distinguished road

      0  

    Default Unanswered: How to navigate to a different panel from an image link using listeners

    Unanswered: How to navigate to a different panel from an image link using listeners


    Hello everyone,

    I am trying to figure out how to navigate to a different panel in the app while staying in the same window. I have a link (external link) setup using listeners but it opens the link in a new tab. I just want to open up a different specified view/panel through clicking on the image.

    Code:
           items: [
                {
                    xtype: 'container',
                    docked: 'top',
                    ui: '',
                    width: 318,
                    items: [
                        {
                            xtype : 'image',
                            src: 'images/capture.jpg',
                            height: 232,
                            ui: '',
                            width: 317,
                            listeners:{
                              tap:function(){
                                  window.open ("http://www.parishworld.net/con_TopStory.cfm?contentUUID=329FF0B0-2219-2361-ACF52FC3DE98F261|201208"); 
                              }
                            }
                        }
                    ]
                }
            ]

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,645
    Vote Rating
    899
    Answers
    3574
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    So you aren't wanting to open a new tab, just wanting to navigate to a different panel. Where is this panel in relation to the image component? Are you wanting to load the external URI in the panel and if so how are you wanting to do that, iframe?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Aug 2012
    Posts
    39
    Vote Rating
    5
    Answers
    1
    Zachary1748 is on a distinguished road

      0  

    Default


    I made a new thread that explains it better. I wanna be able to change the tap function to where it links to another panel in the app, in the same tab that pulls in RSS feed from the certain topic that the user picked by clicking a certain image and each image has it's own link to the certain topic that they picked but leading to the same panel just showing different information.
    Here is the link: http://www.sencha.com/forum/showthre...s-Tap-function...

Thread Participants: 1

Tags for this Thread