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.

Implementing the customer sideWithin this section, we illustrate how we implement the customer side of therequested feature.In order to accomplish this task, we will use the Sametime Links Toolkit. Keep inmind, however, that we cannot directly set/update the user properties withinformation about the exact page the user is navigating to. In order to handle this,we must implement a type of workaround. We can set the information we need atthe user status message property and then manipulate the text stream of theURL.Following the techniques used in the 13.7.1, “Provide users with self servicetools” on page 393, we now need to set the customer status message on everypage visited. In order to provide this functionality, we must use theSTLinksetMyStatus() function, as shown in Example 13-12.Example 13-12 Setting the user on line status to show the current pagefunction STLinksLoggedIn() {STLinksSetMyStatus(“32”, “On Page: “ + window.location.pathname);STLinksEnterPlace(“WEBSITE”, true)}This example shows that when Sametime Links receives the STLinksLoggedInevent, the user status message is changed to show the page where the user ispositioned on the <strong>Web</strong> site. After this, we enter into the "WEBSITE" Place.Note that the OLSupport Place is used for users requesting online support andthe "WEBSITE" Place is intended as the generic Place for the whole <strong>Web</strong> site.Also note that according to Figure 13-22 on page 409, predefined Places can bedefined to track users on different areas of the <strong>Web</strong> site. In this case, we woulduse some attibute on the site pages to fill the parameter currently receiving thevalue “WEBSITE”.Important: As mentioned before, the techniques used here are the same asthe ones used in 13.7.1, “Provide users with self service tools” on page 393and in 13.6.1, “Enabling people awareness into existing applications” onpage 379.Please refer to Chapter 9, “Sametime Links” on page 219 and specifically 9.5,“Building an interactive <strong>Web</strong> site” on page 244 for detailed information aboutimplementing this feature through Sametime Links.410 <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!