Relaxing of document domain in the portal components is performed according to the following rules:
PRT portal components implementing the IPortalComponent interface
The code for domain relaxing is included automatically by EPCF during rendering of the portal component.
Web Dynpro for Java and Web Dynpro for ABAP portal components
The code for domain relaxing is included automatically by the Web Dynpro frameworks during rendering of a portal component. Make sure that the Web Dynpro components are integrated using standard templates for Web Dynpro applications in the Portal Content Directory.
To access the EPCF methods, use the corresponding wrapper methods/classes in Java or ABAP supplied by WebDynpro.
For more information, see Developing Web Dynpro Applications for the Portal .
Other components that render HTML markup
For domain relaxing, you have to include the following code before any EPCF method calls:
<script> var lnDotPos = document.domain.indexOf( "." ); if(lnDotPos>=0)document.domain = document.domain.substr(lnDotPos+1); </script>