Question

I have a window component that using loader configuration like this:

Ext.create('Ext.window.Window', {
    id: 'window1',
    title: 'Lookup Master Soal',
    height: 500,
    width: 800,
    draggable: false,
    modal: true,
    loader: {
        url: 'http://mydomain.com:34573/CBC/Pertanyaan/MasterSoal/Default.aspx?lookup=true',
        renderer: 'frame',
        autoLoad: true,
        scripts: true,
        loadMask: {
            showMask: true
        }
    }
}).show();

I have some javascript code in http://mydomain.com:34573/CBC/Pertanyaan/MasterSoal/Default.aspx, and I want to send some parameter to the window. I have no idea to do this. I would greatly appreciate any help.

Was it helpful?

Solution

You can access a Window from its iframe page (loaded via its Loader) in JavaScript via the "parentAutoLoadControl" reference.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top