| patricos@o2.pl 2007-12-20, 1:29 pm |
| For anyone who wants eliminate the annoying javascirpt error which appears in IE (prevOnLoad function error) when using the Web Clipping portlet I would like to present the solution of the problem...<br />
<br />
There is a badly written javascript code in file<br />
/opt/IBM/WebSphere/PortalServer/installedApps/Web_Portlets_PA_dlvx0o3.ear/WebPortlets.war/js/framework_lite.js<br />
(the example path of deployed war)<br />
<br />
Replace the line:<br />
<i>var prevOnLoad=window.onload;window.onload=onloadHandler();}</i><br />
<br />
with:<br />
<i>var prevOnLoad=window.onload;window.onload=onload_Handler;prevOnLoad.call();}</i><br />
<br />
and from the line:<br />
<i>if (arguments.callee.done) return;prevOnLoad.call();arguments.callee.done=true;return true;};if (is.ie4up)</i><br />
<br />
remove the call of:<br />
<i>prevOnLoad.call()</i><br />
<br />
(+if (arguments.callee.done) return;arguments.callee.done=true;return true;};if (is.ie4up)+)<br />
<p />
After these changes the javascript error should not appear any more...<br />
Hope someone find it useful...<br />
<br />
Regards<br />
Patrick<br />
Java Programmer
|