PDA

View Full Version : Remote method ore ...?



kramal
20 Feb 2013, 5:25 AM
Hello Friends!

I have encountered with a problem. The problem is I cant execute method (in current page) on the other place.The order is:1) I must click save button and i will be redirected to another place2)then will be executed method alert('I am previuos page`s'method). Ok. Code is here:

Ext.onReady(function(){


Ext.define('windo',{
extend:'Ext.window.Window',
initComponent:function(){
this.title='Order No.',
this.height=400,
this.width=600,


//I`d like something like this
this.renderRemote='path/to/aim';
//and there I will be redirected and my alert-method will be executed
this.bbar=[
'->',
{
text:'Save',
scope:this,
handler:function(){
alert('I am here '); //this method must be executed on another place
this.close();

}
},{
text:'Cancel',
handler:function(){alert('handler Cancel')}
},
]
this.callParent(arguments);
}


});


var a=Ext.create('windo');
a.show();
});

Thanks !
And I beg your pardon for my harsh english

sword-it
20 Feb 2013, 7:55 AM
Hi kramal,

Are you calling parent page method from the popup window? if yes then you must first take a reference of parent page and under your popup window, after that you can access parent page method.

kramal
21 Feb 2013, 3:09 AM
Great! I have deemed that it is impossible. Thank you! Turk agalarimizga salem!