Skip to main content link. Accesskey S
  • Anonymous
  • Log on
  • Help
  • IBM logo
  • IBM Connections wiki
  • All Wikis
  • Home
  • Community Articles
  • Product Documentation
  • Learning Center


Search

Advanced Search

Categories

Tag Cloud

  • 1.0
  • 1.0.x
  • 2.0
  • 2.0.1
  • 2.0.1.1
  • 2.0_media
  • 2.5
  • 2.5_deployment
  • 2.5_media
  • 2.5_performance
  • 3
  • 3.0
  • 3.0.1
  • 3.0.1_media
  • 3.0_media
  • 3_deployment
  • 8.1.1
  • 8.2
  • activities
  • administrators
  • api
  • best_practices
  • blogs
  • bookmarks
  • business_card
  • cluster
  • communities
  • community
  • community_manager
  • connections
  • connections_3
  • connections_301
  • customization
  • customize
  • customizing
  • demos
  • deploying
  • deployment
  • deployments
  • developers
  • dogear
  • Domino
  • Edge server
  • education
  • error messages
  • files
  • forums
  • getting_started
  • Help
  • home
  • home_page
  • homepage
  • how-to
  • HTTP server
  • ibm
  • index
  • installation
  • integration
  • iOS
  • ipad
  • iWidget
  • J2EE
  • javadoc
  • lc3.0
  • learning
  • lotus-connections
  • mml
  • mobile
  • Notes
  • performance
  • person_card
  • Portal
  • portlet
  • portlet_factory
  • profiles
  • proxy server
  • quickr
  • Redbooks
  • rest
  • reverse proxy server
  • Sametime
  • scenarios
  • search
  • security
  • self-paced
  • SSO
  • tags
  • test_infrastructure
  • troubleshooting
  • tuning
  • video
  • VideoFest
  • videos
  • WAI
  • WAS
  • web_seminar
  • WebAppIntegrator
  • WebSphere
  • widgets
  • wikis
InformationInformation
You are currently viewing machine translated content. IBM translation might be available. Click IBM Translated Product Documentation to see what is available.X


Home > IBM Redbooks: Customizing IBM Connections 3.0.1 > 3.5 Using Google Gadgets inside IBM Connections
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

3.5 Using Google Gadgets inside IBM Connections 

expanded Abstract
collapsed Abstract
No abstract provided.
ShowTable of Contents
HideTable of Contents
  • 1 Google gadget overview
  • 2 Selecting a gadget
  • 3 Create the iWidget wrapper
  • 4 Deploy the iWidget
  • 5 Related Links
Previous | Next

Google gadget overview


Google gadgets are small, lightweight applications very similar to the iWidgets found in IBM Connections. Gadgets consist of XML, HTML, and Javascript resources. Google publishes a public directory of gadgets at the following site: http://www.google.com/ig/directory/. To make gadgets available outside of the Google site, Google provides a web service to return the necessary HTML and Java script to display the gadget. By wrapping the output of this web service in a iWidget descriptor, gadgets can be used on the IBM Connections Home page. Note that some gadgets are not available as web services and some gadgets display on only sites in the Google domain.

Selecting a gadget


The first step in adding a Google gadget to the IBM Connections Home page is to generate the code that will be using in the iWidget wrapper. Using the Page Creator Tool from Google is the best way to create the necessary code. The steps are as follows:

    1. Open the Google Gadget library from the following link:
    http://www.google.com/ig/directory?synd=open
    2. Find the desired gadget, then click the Add to your webpage button.
    3. Configure the display settings including the Title, Width, Height, and Border.
    4. Click the Get the Code button. The code is displayed below the button.
    5. Copy the src attribute of the script tag. This URL is to be used in the iWidget wrapper.
 
The following is a sample URL for the Business Quote of the Day gadget:


http://www.gmodules.com/ig/ifr?url=http://googlegadgetworld.com/GreatQuotes/BusinessQuotes/businessmoney.xml&synd=open&w=320&h=210&title=Business+Quote+of+the+Day&border=%23ffffff%7C3px%2C1px+solid+%23999999


Create the iWidget wrapper


To create the iWidget wrapper for the gadget, we wrap the gadget using an iWidget template and some server-side code. Because the Google gadget might contain some JavaScript that conflicts with other widgets on the Home page, an HTML iframe is used to isolate the gadget in the iWidget descriptor. The server-side code creates the HTML page to be hosted in the iframe. This HTML page contains the code necessary to call and render the Google gadget.
 
This example uses Java for the server-side code, but other languages can be used as well.
 
The following sample template is used as the iWidget descriptor:
 

<iw:iwidget name="gadget" 
xmlns:iw="http://www.ibm.com/xmlns/prod/iWidget">
   <iw:content mode="view">
   <![CDATA[
      <iframe scrolling="auto" width="100%" height="300px" frameborder="0" 
      src="<gadget wrapper url>">
      </iframe>
   ]]> 
   </iw:content>     
</iw:iwidget>

 
The following code is used to create the HTML page for the iframe:
 

 <%@ page contentType="text/html; charset=UTF-8" %>
<html>
<head></head>
<body>
<%
    StringBuffer url = new StringBuffer();
    url.append("http://www.gmodules.com/ig/ifr?");
    url.append(request.getQueryString());    
 %>

<script src="<%= url.toString() %>"></script>
</body>
</html>



The following is the resulting iWidget descriptor file after inserting the Quote of the Day gadget URL:
 

<iw:iwidget name="googleQuote" 
xmlns:iw="http://www.ibm.com/xmlns/prod/iWidget">
   <iw:content mode="view">
   <![CDATA[
      <iframe scrolling="auto" width="100%" height="300px" frameborder="0" 
      src="/gadgetWrapper/gadgetWrapper.jsp?url=http://googlegadgetworld.com/GreatQuotes/BusinessQuotes/
               businessmoney.xml&amp;synd=open&amp;w=320&amp;h=210&amp;title=Business+Quote+of+the+Day">
      </iframe>
   ]]> 
   </iw:content>     
</iw:iwidget>


Deploy the iWidget


Now that the Google gadget is wrapped in an iWidget descriptor, the gadget can be deployed on an application server. Use the application URL when adding to the IBM Connections Home page. For more information about adding the new widget to the Home page, please see 3.3 Adding and removing widgets in the IBM Connections Home page.
 

Related Links


The following links provide more information about using Google Gadgets with IBM Connections:
 
Implementing and deploying Google Gadgets for the Lotus Connections Home page

Customizing IBM Lotus Connections 2.5 with Lotus Widget Factory and Google gadgets

Parent topic: 3.0 Customizing the Home page

expanded Article information
collapsed Article information
Category:
IBM Redbooks: Customizing IBM Connections 3.0.1
Tags:
Redbooks

This Version: Version 5 January 5, 2012 12:22:40 PM by Amanda J Bauman  IBMer

expanded Attachments (0)
collapsed Attachments (0)

 


expanded Versions (5)
collapsed Versions (5)
Version Comparison     
Version Date Changed by               Summary of changes
This version (5) Jan 5, 2012 12:22:40 PM Amanda J Bauman  
3 Dec 20, 2011 6:32:12 AM Stephen Smith  
3 Dec 20, 2011 1:21:52 PM Stephen Smith  
2 Nov 21, 2011 2:59:31 PM Amanda J Bauman  
1 Nov 21, 2011 11:12:27 AM Amanda J Bauman  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedSubscribe to RSSHelpAbout
  • All Lotus and WebSphere Portal wikis
  • IBM developerWorks
  • IBM Software support
  • IBM Social Business User Experience Blog
  • IBMSocialBizUX on Twitter
  • IBMSocialBizUX on Facebook
  • Lotus product forums
  • IBM Social Business UX blog
  • IBM Collaboration Solutions
  • Recently added feedRecently added
  • Recently edited feedRecently edited
  • Recently added comments feedRecently Added Comments
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Contact IBM
  • IBM Terms of use
  • Wiki terms of use