Forums de discussion
Possible problem in IFrame portlet JS 5.2.3
gianluca maranzana, modifié il y a 14 années.
Possible problem in IFrame portlet JS 5.2.3
Junior Member Publications: 26 Date d'inscription: 30/07/08 Publications récentes
I've found a problem using IFrame portlet, that's shows a Alfresco content:
When you refresh page, the url seems to be "auto-added" to itself.
I've noticed a problem in view.jsp at the javascript method "init()":
this
Because we use https...
And "src += path;" used to add the additional path, in the refresh page cause a duplication of it's content, so is better to use "src = path;"
I 'think removing this init() call would be a better solution ;) or not?
(http://issues.liferay.com/browse/LPS-8467)
When you refresh page, the url seems to be "auto-added" to itself.
I've noticed a problem in view.jsp at the javascript method "init()":
this
if (path.indexOf('http://') != 0) {
src = '<%= baseSrc %>';
}
should be like this: if ( (path.indexOf('http://') != 0) ||
(path.indexOf('https://') != 0) ) {
src = '<%= baseSrc %>';
}
Because we use https...
And "src += path;" used to add the additional path, in the refresh page cause a duplication of it's content, so is better to use "src = path;"
I 'think removing this init() call would be a better solution ;) or not?
(http://issues.liferay.com/browse/LPS-8467)