Feedback

  • Contents
 

IS_Event_DataPop

Definition

This event is fired in response to new incoming data from a predictive or preview call. Its prototype is IS_Event_DataPop(Names, Values). This event is only called if there is no IS_Event_NewPredictiveCall event handler defined (for preview if no IS_Event_PreviewDataPop or if no IS_Event_NewPreviewCall). This event is raised when the data that is associated with the predictive or power dialed call is presented to the agent. This event is passed a JavaScript array of names and values representing the column names and column values in the call list the campaign is dialing from.

Attributes

Names

A JavaScript array of the Dialer attribute names.

Values

A JavaScript array of the Dialer attribute values.


Example 1

<head>
    <meta name="IS_Action_SelectPage">
    <meta name="IS_Action_SetFocus">
    <script language=javascript>
        function IS_Event_DataPop(Names, Values) {

            // move this tab page to the top and set             // focus to this application window
            IS_Action_SelectPage.click();             IS_Action_SetFocus.click();         }     </script> </head>

Example 2

This sample script iterates through the JavaScript array and writes out the column name and its corresponding value.

<head>
    <script language="javascript">
        // global call object
        function IS_Event_DataPop(p_Names, p_Values) {
            var x;
            for (x in p_Names) {
                document.write(‘Column Name: >’+p_Names[x] + ‘ -- - Column Value: ’+p_Values[x]);
            }
        }
    </script>
</head>