Results 1 to 4 of 4

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

  1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    40
    Answers
    1
    Vote Rating
    5
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,421
    Answers
    3900
    Vote Rating
    1271
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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
    40
    Answers
    1
    Vote Rating
    5
      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...

  4. #4
    Sencha User
    Join Date
    Sep 2014
    Location
    india
    Posts
    6
    Vote Rating
    -2
      0  

    Default how to save panel as image

    how to save panel as image as we do for chart with the help of "chartname.save" is there any way for panel ..

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
  •