cancel
Showing results for 
Search instead for 
Did you mean: 

EPCF client eventing

Former Member
0 Kudos

I posted a question awhile ago, and would like to ask again to see if anyone can help. I am trying to do a simple iView test to verify that the EPCF is working in our environment. Here is the current script I am using and the results. I am using the Proxy object because my iview code is on a different server from the portal. The results I get when I run this iview are: EPCM null

I get the word null no matter what method I call.

<SCRIPT src="epcfproxy.js"></SCRIPT>

</HEAD>

<BODY>

<script>

var lnDotPos = document.domain.indexOf( "." );

if (lnDotPos >= 0)

document.domain = document.domain.substr( lnDotPos + 1 );

document.write ('EPCM '+EPCMPROXY.getVersion());

</script>

Any ideas? I appreciate your help!

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

And how's your html displayed in the browser? As the EPCMPROXY object just delegates calls to the EPCM object contained in a surrounding frame/iframe, it is vital for the EPCMPROXY to work that the surrounding frame contains such an object. You can check that by viewing the source code of the surrounding html frame, searching for EPCF comments/code. Hence, just starting the html page with the direct webserver relative URL to the html page will not work, as there is not surrounding html page containing the EPCM object. It must be some portal page the contains the html page inside an iframe.

Former Member
0 Kudos

The epcfproxy.js file is in the same directory as my test html file. They are on a different web server than the portal.

I created a .NET custom iView that simply goes to my test html file. I'm not clear if it should bypass the iView server or load via the iview Server. Either way, it is not successful. The first time it loads via the iView server, it gives an error EPCMPROXY is not defined, and then if I refresh the iView it becomes null. Bypassing the iView server it is always null.

Former Member
0 Kudos

Do you have the epcfproxy.js file stored in the indicated location? If this html is generated from portal component code, the .js file will probably not be at this location.

Regards,

Armin