|
You can customize IBM® Connections to be embedded in an IFrame.
|
ShowTable of Contents Before you begin
IBM Connections includes a framekiller script in the header to prevent inclusion of the application into an IFrame hosted in another domain. The script resets the location of the top-level window to the URL of the embedded IBM Connections application. In IBM Connections 4, the script is included as literal JavaScript code embedded in the JSP page. Starting from version 4.5, the script is included by using a JSP tag.
Procedure
Complete the following steps to embed IBM Connections in an IFrame.
1. Obtain a copy of header.jsp and login.jsp from any of the IBM Connections enterprise applications.
2. Locate and comment out the following lines:
if(self!=top){
try {
// reset location if in different host.
// per Same Origin Policy, try to get top location attributes,
// will get permission denied if in different origin.
if (self.location.hostname!=top.location.hostname)
top.location=self.location;
} catch(e){
// reset location if in different origin
top.location=self.location;
}
}
|