views:

35

answers:

0

have traced JavaScript files under the JReport help folder that produced by RoboHelp, and find out reason. This is a bug of Chrome 5 and it is hard to walk around by modify RoboHelp's JavaScript files. The reason is as below

In the function getStubPage_inter(wCurrent) in JavaScript file whproxy.js, I add comments

function getStubPage_inter(wCurrent)
{
 if(null==wCurrent.parent||wCurrent.parent==wCurrent)
  return null;

Yuf => Here in chrome 5 the wCurrent.parent.whname is always undefined. In other browser when wCurrent is whskin_frmset01.htm the wCurrent.parent is index.htm and its whname type is "string" and whname is "wh_stub". In other words, when we use chrome 5 to browse url file:///D:/JReport/Server/help/start/index.htm, JavaScript function can not correct parent window.

 if(typeof(wCurrent.parent.whname)=="string"&&"wh_stub"==wCurrent.parent.whname)
  return wCurrent.parent;
 else
  if(wCurrent.parent.frames.length!=0&&wCurrent.parent!=wCurrent)
   return getStubPage_inter(wCurrent.parent);
  else
   return null;
}

As correct parent window can not be found, in whskin_frmset01.htm the start.htm can not be loaded. in whskin_frmset010.htm the whskin_pdhtml.htm can not be loaded. So we see the blank in frames that their src is start.htm and whskin_pdhtml.htm in browser.