Example 9 - Using ScreenTips to show list data

To add ScreenTips to the display of an Events list, do the following:

Note Custom ScreenTips are supported in Microsoft Internet Explorer version 4.0 and later.

  1. Using Microsoft FrontPage, create a new page on a Web site that is based on SharePoint Team Services from Microsoft.

  2. In HTML view, add the following STYLE information in the document's HEAD section:

    <META Name="Microsoft SharePoint Content Type" Content="Dynamic">
  3. Within the document's BODY section, add the following CAML source:

      <View Name='AnyName' FreeForm='TRUE'>
        <FieldRef Name="LinkTitle"/>
        <FieldRef Name="Location"/>
         <HTML><![CDATA[<SPAN TITLE="Location:&nbsp;]]></HTML>
         <Field Name='Location'/>
         <Field Name='LinkTitle'/>
  4. Save and view the page.

    As a result, a new view of the Events list is created. The LinkTitle field is specially handled in that, when you place the pointer over the LinkTitle text, a ScreenTip is created to display the contents of the Location field.

Note   This example assumes that the built-in Events list has not been deleted.

See Also

Introduction — What Is CAML?

Location of CAML