Skip to Content
avatar image
Former Member

EPCF client eventing

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!

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jun 09, 2004 at 03:29 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 10, 2004 at 04:20 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 11, 2004 at 11:00 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded