cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1798
Views
0
Helpful
1
Replies

Finesse Custom Gadget Not Working Properly

I am using CISCO Finesse Agent Desktop to handle calls and populate customer information.

The customer information will be pop-ed using a jsp page by providing the CallerID as parameter to it.

I am trying to run this jsp inside a gadget.

I have modified the desktop layout from Finesse Administration as below:

<tab>

     <id>manageCall</id>

     <label>finesse.container.tabs.supervisor.manageCallLabel</label>

     <gadgets>

          <gadget>http://10.1.47.106:8084/AgentDesktop/ScreenPop.xml</gadget>

     </gadgets>

</tab>

I have this gadget running in an external server tomcat:

It contains the following code snippet:

<script type="text/javascript" src="jquery-1.9.1.min.js"></script>

<script type="text/javascript" src="finesse-10.0.1.js"></script>

<script type="text/javascript" src="ScreenPop.js"></script>

<body>

   <div>

      <div id="agentout">

      </div>

The ScreenPop.js script has the following code snippet:

render = function (dialog) {

    var currentState = user.getState();

    var html = '';

    html += '<div>';           

    html += '   <div id="agentstate"> The current state is: ' + user.getState() + '</div>';

    html += '   <div id="dialogcount"> The number of dialogs is: ' + numDialogs + '</div>';

    html += '   <div id="callerId"> The Caller ID: ' + dialog.getFromAddress() + '</div>'; 

    if (numDialogs==1) {     

       html += '   <iframe src="http://10.1.47.106:8084/AgentDesktop/index.jsp?callerId='

               + dialog.getFromAddress()

               + '" width="100%" height="300px"></iframe>';

       html += '</div>';

       $('#agentout').html(html);

       gadgets.window.adjustHeight();

    }

    else {

       html += 'Awaiting a Call (v: 1.0.0.21) !';

       html += '</div>';

       $('#agentout').html(html);

       gadgets.window.adjustHeight();

    }

}

The other information like Agent Status and Caller ID are appearing properly, but the iframe that should load the web page (JSP or even google) is not showing any contents. Its always empty box. But running this URL from browser is working fine.

Any thoughts on this issue.

Thanks,

Ajmal

1 Reply 1

piyush aghera
Spotlight
Spotlight

Its been long time this question was posted, but still replying :-)

The URL which you are trying to use within Screen pop up gadget should support iFrame, and google does not work well within iFrame for sure.