Feb 19, 2015, 11:53 AM
[CLOSED] renderer"frame" alternative in examples solution
I am basing my solution on your examples solution and the problem that is constantly appearing, and was addressed in my questions here and questions of other users, is that, as far as I understand, we have the following in the main.js:
What other alternatives we have when it comes to this? I would like to understand why you guys chose to use this solution and if there are other ways what changes would they imply to your original solution when not using frames?
Thank you.
var makeTab = function (id, url, title) {
var win,
tab,
hostName,
exampleName,
node,
tabTip;
if (id === "-") {
id = Ext.id(undefined, "extnet");
lookup[url] = id;
}
tabTip = url.replace(/^\//g, "");
tabTip = tabTip.replace(/\/$/g, "");
tabTip = tabTip.replace(/\//g, " > ");
tabTip = tabTip.replace(/_/g, " ");
hostName = window.location.protocol + "//" + window.location.host;
exampleName = url;
tab = App.ExampleTabs.add(new Ext.panel.Panel({
id : id,
tbar: [{ xtype: 'label', id: id + 'L', margins: '0 0 0 10', text: title },
"->",
{
text : "Refresh",
handler : function () {
Ext.getCmp(id).reload(true)
},
iconCls : "#PageRefresh"
}],
title : title,
tabTip : tabTip,
hideMode : "offsets",
loader : {
renderer : "frame",
url: hostName + url,
and the renderer : "frame",
seems to be the problem all the time. Loading the view in a frame.What other alternatives we have when it comes to this? I would like to understand why you guys chose to use this solution and if there are other ways what changes would they imply to your original solution when not using frames?
Thank you.
Last edited by Daniil; Feb 25, 2015 at 9:16 AM.
Reason: [CLOSED]