PDA

View Full Version : how to open URL into Window ExtJs



armandi
22 May 2011, 3:44 PM
how to open URL into Window ExtJs
thanks

paul parker
23 May 2011, 11:06 AM
I have the same question.Did someone found anything?

friend
23 May 2011, 11:25 AM
Window inherits the autoLoad config option from Panel. Note that I included all config options below, where most are optional:


var w = new Ext.Window({
autoLoad: {
url: "someApplicationURL",
params: {
firstName: "Shuman",
lastName: "Human"
},
callback: someCallbackFuncion,
scope: someObjectObject,
discardUrl: true,
nocache: true,
text: "Loading...",
timeout: 60,
scripts: false
},
height: 300,
width: 600
});
Keep in mind that this only supports URLs which are in the context of your application's domain, i.e. you can't plug in a URL of 'http://www.google.com' and expect it to work.

james hall
14 Oct 2012, 5:28 AM
I was looking this few days and at last find it here thanks for sharing.....

randy ortan
28 Dec 2012, 9:09 AM
can anyone explain above code?

anolia
30 Sep 2014, 8:57 AM
xtype: 'button',
text: 'NameButton',
handler: function () {
window.location = "http://www.sencha.com/";
}

gmprakashlivingstone
10 Feb 2015, 12:46 AM
Window inherits the autoLoad config option from Panel. Note that I included all config options below, where most are optional:


var w = new Ext.Window({
autoLoad: {
url: "someApplicationURL",
params: {
firstName: "Shuman",
lastName: "Human"
},
callback: someCallbackFuncion,
scope: someObjectObject,
discardUrl: true,
nocache: true,
text: "Loading...",
timeout: 60,
scripts: false
},
height: 300,
width: 600
});
Keep in mind that this only supports URLs which are in the context of your application's domain, i.e. you can't plug in a URL of 'http://www.google.com' and expect it to work.



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

gubespam
30 Apr 2015, 6:48 AM
For ExtJS 5, see http://docs.sencha.com/extjs/5.1/5.1.0-apidocs/#!/api/Ext.Component-cfg-loader