Sep 15, 2016, 6:40 PM
[CLOSED] How to use the root path '/' when loading a widget?
How can I make the widget-loader use an absolute path and not a relative one?
I tried the code below, but it will still use a relative path,
It will look for the widget here (example): http://localhost:17158/Path1/Path2/widget/myNs/test1.js
But I want it to look here: http://localhost:17158/widget/myNs/test1.js
I tried the code below, but it will still use a relative path,
It will look for the widget here (example): http://localhost:17158/Path1/Path2/widget/myNs/test1.js
But I want it to look here: http://localhost:17158/widget/myNs/test1.js
@{
var x = Html.X();
}
@(
x.Panel()
.Items(
x.Button()
.Text("Create field")
.Handler(@"
var p=this.up('panel');
Ext.Loader.setPath('myNs', '/');
p.add({ xtype:'myNs.test1' });
")
)
)
Last edited by fabricio.murta; Nov 11, 2016 at 4:52 PM.
Reason: no user feedback for 7+ days