10.07.2015 Views

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

that the agent will load. Within the section of this page, we need thefollowing:Where codebase is the URL of the directory where the ST Links run-time filesare:http:///sametime/agentstlinksAs with the customer pages, we need to add the function setSTLinksURL toensure the correct HTML pages are loaded. The function setSTLinksURL tellsthe Sametime Links where these HTML files are located on the Sametimeserver:setSTLinksURL("","EN","");Where ORIGINALCODEBASE is the URL of the directory where the original STLinks run-time files are:http:///sametime/stlinksCODEBASE is the URL of the directory where the customized agent ST Linksfiles are:http:///sametime/agent st linksFor complete details on stSTLinksURL function and its parameters, please referto the stSTLinksURL function description within the Sametime Links JavascriptAPI Reference, which is included in Sametime Software Development Kit (SDK)(see 2.2.1, “Sametime Software Development Kit (SDK) documentation” onpage 22 for more details).Next, we need some means of getting the agent's Sametime login details. Forthe purpose of this sample, the easiest way is to use JavaScript's promptcommand. So we need some variables to store the agent's user name andpassword, the prompt functions to get them from the users, and thewriteSTLinksApplet to log the agent in. The code in Example 9-4 demonstrateshow to do these tasks.Example 9-4 Prompting for login details//Declare variables that will be used to store agent detailsvar STUserName, STPassword;//Prompt for Agents name250 <strong>Lotus</strong> <strong>Instant</strong> <strong>Messaging</strong>/<strong>Web</strong> <strong>Conferencing</strong> (Sametime): Building Sametime-Enabled Applications

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!