PDA

View Full Version : EXT.Window autoLoad URL not working in EXTJS-5.1 But it works in ExtJS-4.2



gmprakashlivingstone
10 Feb 2015, 12:48 AM
var w = new Ext.Window({
autoLoad: {
url: "someApplicationURL",
params: {
firstName: "anyName",
lastName: "anyName"
},
callback: someCallbackFuncion,
scope: someObjectObject,
discardUrl: true,
nocache: true,
text: "Loading...",
timeout: 60,
scripts: false
},
height: 300,
width: 600
});



The above one works well in EXTJS 4.2 But not working in EXTJS-5.1

joel.watson
11 Feb 2015, 1:19 PM
The above one works well in EXTJS 4.2 But not working in EXTJS-5.1

Hi--

The autoLoad config was deprecated in Ext JS 4.2 and removed in Ext JS 5. You can now use the "loader" config:

http://docs.sencha.com/extjs/5.1/5.1.0-apidocs/#!/api/Ext.window.Window-cfg-loader

I've included a Fiddle with an example below.

Thanks!
Joel

i3j