Siebel eService Administration Guide for Siebel Open UI > Configuring Siebel eService > Setting Up the Applet for Twitter >
Displaying the Twitter Widget in Siebel eService
After you obtain the Twitter widget from Twitter, you display that widget in a form applet in Siebel eService. To display the Twitter widget in Siebel eService
- Create a Web template file with a name of Twitter.swt and an empty div element.
The file content follows:
<!-- Template Start Twitter.swt -->
<div>
</div>
<!-- Template End Twitter.swt -->
- Complete the following steps to enter content in the empty div element:
- Enter the following script tag in the empty div element:
<script>
twtr=document.get.ElementById ("widgetID ")
if(twtr){
twtr.remove();
twtr=null;
}
</script>
where:
widget ID is the widget ID that you note in Step 7 of Obtaining a Twitter Widget.
- After the script tag, copy and paste the generated code that appears when you complete Step 6 of Obtaining a Twitter Widget.
- In Siebel tools, create a new Web template with a name and a filename of Twitter.swt.
- Create an empty form applet with a name of Twitter, and complete the followings steps for this applet:
- Set the class name to CSSFrameBase.
- In the Base mode of the applet Web template, set the Web template to Twitter.swt.
- Add the applet to the view where you want Tweets to appear.
- Compile the changes in the Step 3 and Step 4 into the Siebel Repository File.
- Clear the browser cache, and re-start Siebel eService.
|