-
21 Aug 2012 5:33 PM #1
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"); } } } ] } ]
-
23 Aug 2012 6:22 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,581
- Vote Rating
- 433
- Answers
- 3100
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
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
23 Aug 2012 8:00 AM #3
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...


Reply With Quote