WebSphere Portal Server - Javascript error connected with Web Clipping portlet

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > December 2007 > Javascript error connected with Web Clipping portlet





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Javascript error connected with Web Clipping portlet
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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com