Skip to Content
author's profile photo
Former Member

Client Side Eventing Question

Hi. I'm attempting to developing client side eventing for EP 5 for the first time. So far, I have 2 jsp's:

1. sender.jsp

Which has javascript that has 1 call:

<script language="javascript">

function testEvent()

{

EPCM.raiseEvent("urn:com.oceans.content:test", "morningCall", "Good morning");

}

</script>

This is called when the user clicks on an HTML link.

2. receiver.jsp

Which contains the following javascript:

<script language="javascript">

function onWakeup(eventObj)

{

alert( "got a wakeup call from " + eventObj.dataObject );

}

EPCM.subscribeEvent( "urn:com.oceans.content:test", "morningCall", onWakeup );

</script>

This really isn't doing anything. Do I need something special in my DynPage as well?

Thanks!

Faith

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Aug 08, 2004 at 06:31 PM

    Nevermind! I had a really obvious error elsewhere that was keeping my receiver javascript from being called.

    Faith

    Add comment
    10|10000 characters needed characters exceeded