Hybrid View

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    8
    Vote Rating
    0
    kisundar is on a distinguished road

      0  

    Default Unanswered: Context menu within an IFrame window

    Unanswered: Context menu within an IFrame window


    I have a View created


    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'
        });
    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:
    var context = new Ext.menu.Menu({
                items: [
                    {
                        text: 'I like Ext',
                        checked: true
                    }, '-', {
                        text: 'Custom context menu'
                    }
                ]
            });

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,790
    Answers
    3465
    Vote Rating
    833
    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


    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
    ________________
    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
    Oct 2012
    Posts
    8
    Vote Rating
    0
    kisundar is on a distinguished road

      0  

    Default 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

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi