Document ID: 20397
Contents
Introduction
Prerequisites
Requirements
Components Used
Conventions
Overview
Changes to the Invoking Page
Changes to the Callform Page
NetPro Discussion Forums - Featured Conversations
Related Information
Introduction
This document explains how to include a button on the main web page, which is linked to the Cisco Collaboration Server.
Prerequisites
Requirements
Readers of this document should have knowledge of these topics:
-
Familiarity with Cisco Collaboration Server directory structure
-
Knowledge of a text editor
-
General understanding of HTML and/or Javascript
-
Ability to follow HTML and/or Javascript code
Components Used
The information in this document is based on these software and hardware versions:
-
Cisco Collaboration Server versions 3.x and 4.x
-
Cisco Web Collaboration Option 5.0
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.
Conventions
For more information on document conventions, refer to the Cisco Technical Tips Conventions.
Overview
This procedure explains how to add a button on the main web page, which is linked to the Cisco Collaboration Server. The button opens the call form in a separate window, and passes the value of the web page to the InvokingURL variable, and the InitSession Page. The InvokingURL variable is saved in the database, and is displayed with the caller information as a reference to the page from which the caller information comes. The InitSessionPage is the page that is used at the start of the session after the caller and agent are connected.
This document includes an example of code that can be used, but there are other methods that can be used, if necessary. As with any code, Cisco recommends that you test the code in a test environment before you submit it to a production environment.
Changes to the Invoking Page
On the main web page, add this code to the page that opens the callframe (the page that the user inputs their name and other information):
<SCRIPT language=JavaScript>
var newWindow;
function submitme()
{
newWindow = window.open("http://servername/path/callFrame.html?"
+ escape(this.location));
}
</SCRIPT>
Note: Ensure that the code appears somewhere in the script section of this page.
You must also add a button that can be clicked to open the callform. Add this code in the required section in the body of the invoking web page.
<CENTER> <P> <FORM name=callback><INPUT name=callme onclick=submitme() type=button value="Call Me"> </FORM>
Changes to the Callform Page
In the callform page (for example, callform.html) change the SCRIPT heading to look like this:
<SCRIPT language="JavaScript">
function doTheTrick()
{
// appletWin is the window we open and push the applet into
sharedWin = "sharedDisplay";
if((document.callback.customerFirstName.value.length == 0)&&
(document.callback.customerLastName.value.length == 0))
{
alert("You must enter your first or last name.");
return false;
}
if(document.callback.extension.selectedIndex == 0)
{
alert("You must select a skill.");
return false;
}
if (pressCount == 0)
{
getUrl();
pressCount++;
return true;
}
else
{
pressCount++;
alert("Your request is being processed, there is no further
need to press the connect button.
\nIf you feel you have received this message in error,
please reload this page.");
return false;
}
}
function getUrl()
{
invoke = top.location.search;
whaturl = invoke.substr(1);
whaturl = unescape(whaturl);
document.callback.invokingUrl.value = whaturl;
document.callback.initSessionPage.value = whaturl;
}
var diagnosticDone = false;
var pressCount = 0;
var windowHandle;
var invoke;
var whaturl;
</SCRIPT>
Note: If any modifications from the default page are made, ensure that they are also incorporated in this section.
NetPro Discussion Forums - Featured Conversations
| NetPro Discussion Forums - Featured Conversations for Customer Contact Software |
| IP Communications and Video: Contact Center |
Related Information
| Updated: Mar 22, 2005 | Document ID: 20397 |
