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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

9.7.2 Starting with a Sametime Links-enabled pageIn this example, we start with a <strong>Web</strong> page that is already enabled with SametimeLinks and add the pop-up menu to it. If your application is not yet enabled withSametime Links, see the instructions in the Sametime Links 3.1 ToolkitDeveloper's Guide and Reference. Basically, you add several simple lines ofHTML/JavaScript code to the <strong>Web</strong> page and provide the user's login name andpassword or single sign-on token. You can also start by adding the pop-up menuto one of the sample pages provided with the toolkit.To access the Sametime Links 3.1 Toolkit Developer's Guide and Reference andthe samples, go to the Sametime Links Toolkit home page. You can go to theToolkit home page by selecting the SDK link in the Sametime server home page.In the Toolkits page, select the Sametime Links Toolkit link. If there is no link,then you have to install the Sametime Toolkits package on the Sametime server.You can also find the Sametime Links 3.1 Toolkit Developer's Guide andReference and the toolkit download on the Toolkits and Drivers page.Note: The Sametime Links run-time files are pre-installed on the Sametime3.0 and 3.1 servers, so you only need to install the toolkit for the samples andthe Sametime Links 3.1 Toolkit Developer's Guide and Reference. If you areusing a Sametime 2.5 server, you have to install Sametime Links forSametime 2.5.Making offline names clickable linksBy default, offline Sametime Links are displayed as normal HTML text. To providea menu for offline Sametime Links, we need to make offline names clickable. Wedo this by adding the offlineLink option to the writeSametimeLink call:writeSametimeLink("Haim Schneider/Haifa/<strong>IBM</strong>", "Haim Schneider", true,"offlineLink:yes")This option should be used only if you want to override the click behavior (whichwe are going to do in the next step). Otherwise, when the link is clicked,Sametime Links would start an instant message with the offline user, whichwould, of course, fail.With the offlineLink option, offline names are displayed as normal HTML links,namely, blue underlined text. There are now two styles of links: bold green linksfor online people and normal blue links for offline people. The mixed style may beconfusing, so we are going to change the style of online links and make it thesame style used for offline links. Although the green bold style is normally usedto highlight online names, the status icon next to the name is by itself a goodindication of the online status.262 <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!