PDA

View Full Version : Redirection when Extjs windows closes



alex1001
2 Mar 2010, 4:15 PM
Hi,

If I have a Extjs Window (eg message box or simlar) open and I close it by clicking the close button, how can I then redirect the application to another url ?

Cheers,

Alex.

kneth
2 Mar 2010, 7:34 PM
For ext message box you should add fn (callback function) to your config. [just check what type of button is pressed, i supposed it is the first param]

i.e.


.
.
,fn: function(btnType) {
//your redirect to url code here
}
.
.
For ext window panel you should add a close listener to your config.
i.e.


.
.
,listeners: {
scope: this
,close: function() {
//your redirect to url code here
}
}
.
.