-
9 Nov 2012 12:17 PM #1
Unanswered: Context menu within an IFrame window
Unanswered: Context menu within an IFrame window
I have a View created
Here testurl is an external url which gets rendered in the view. Now I want to attach a Ext context menu within the iframe. I am not sure how to do this.Code:Ext.define('Status.view.user.SummaryView', { //extend: 'Ext.view.View', extend: 'Ext.panel.Panel', alias: 'widget.buildsummaryview', autoScroll: false, tpl: new Ext.XTemplate( '<tpl for=".">', '<h1><center><b>Summary<br></b></center></h1>', '<iframe id="frame1" class="thumb-wrap" seamless="seamless" frameborder="1" style="width:100%; height:100%;" src="{testurl}"></iframe>', '</tpl>' ), itemSelector: 'div.thumb-wrap', emptyText: 'No Summary Data available' });
Code:var context = new Ext.menu.Menu({ items: [ { text: 'I like Ext', checked: true }, '-', { text: 'Custom context menu' } ] });
-
14 Nov 2012 10:31 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
- Answers
- 3107
The issue is the iframe is an actual different document and Ext JS is not loaded within the 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.
-
14 Nov 2012 11:50 AM #3
My requirement
My requirement
my reuirement is that I need a context menu in my Ext Panel
I am using someething like this
Code:xtype: 'panel', autoLoad: { url: <some url which renders a html> }
Now I want to have a context menu rendered for this url page contents. Is there a way i can achieve this. Kindly advice. Is there a sample code for the same


Reply With Quote