Focal Point
[Resolved] HTML pages throwing javascript errors in WF8

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2207070376

October 13, 2014, 07:36 AM
jvb
[Resolved] HTML pages throwing javascript errors in WF8
Hi,
we have migrated code from WF 7.6.11 to WF 8008M.
After migration while performning the health test when I tried to run the HTML file it started to throw some java script error.
Please let me know if any body has faced the similar issue and cause/ resolution for the same.
I have tried to open the HTML file in WF8 HTML composer and then tried to run the same, still the same issue.

This message has been edited. Last edited by: jvb,


WF 8.1.04,Infoassist,Oracle, Excel, PDF,HTML.
October 13, 2014, 07:44 AM
jvb
also after some analysis i found that before opening the HTML file in WF HTML composer following code was present in the header of the file:


<script id=IBI_RelCallBack type=text/javascript>function AdjustChildrenPosition(){
}


<script id=IBI_OptionsScript type=text/javascript>
var cgipath = "cgipath";
var ibirls = "ibirls3";

var rltdyncalendar = "rltdyncalendar";
var gmap = "ibigmap";
var olap="olap";
var olappanebase="olappanebase";
var olapdrill="olapdrill";

var ibixmltree="ibixmltree";

var ibiOptions = new Array(cgipath,ibirls,rltdyncalendar);


<script id=IBI_nls type=text/javascript src="/ibi_html/javaassist/nls.js">

<script id=IBI_nlsVars type=text/javascript src="/ibi_html/javaassist/nlsvars.js">

<script id=IBI_ibigbl type=text/javascript src="/ibi_html/javaassist/ibi/html/js/ibigbl.js">

<script id=IBI_ibigblloadCss type=text/javascript>
ibigblloadCss(null);
addIntlTranslatedJS("composertrans.js");


-************************************
After opening and saving the Same file in HTML composer the above code got replaced by following:



<script type=text/javascript>//confidential_id=IBI_OptionsScript
var szHtmlAlias="/ibi_html";
var szRunTimeHtmlAlias="runTimeHtmlAlias";
var cgipath="cgipath";
var ibirls="ibirls3";
var rltdyncalendar="rltdyncalendar";
var map="ibimap";
var olap="olap";
var olappanebase="olappanebase";
var olapdrill="olapdrill";
var ibiOptions = new Array(cgipath,ibirls,rltdyncalendar);
var nlsScript="/javaassist/nls.js";
var nlsVarsScript="/javaassist/nlsvars.js";
var glbScript="/javaassist/ibi/html/js/ibigbl.js";
var replacePart="";
var scriptTemplate='<script src="'+replacePart+'" type="text/javascript"><\/SCRIPT>';
if(typeof(szRunTimeHtmlAlias) === 'string' && szRunTimeHtmlAlias.indexOf('/') == 0)szHtmlAlias=szRunTimeHtmlAlias;
document.write(scriptTemplate.replace(replacePart, szHtmlAlias + nlsScript));
document.write(scriptTemplate.replace(replacePart, szHtmlAlias + nlsVarsScript));
document.write(scriptTemplate.replace(replacePart, szHtmlAlias + glbScript));



WF 8.1.04,Infoassist,Oracle, Excel, PDF,HTML.
October 15, 2014, 12:29 AM
jvb
The issue is resolved by setting the value in Dev studio environment properties.


WF 8.1.04,Infoassist,Oracle, Excel, PDF,HTML.
October 15, 2014, 01:25 AM
Rifaz
you meant to say, html_alias is set to /ibi_html/ibi_apps ?


-Rifaz

WebFOCUS 7.7.x and 8.x