Linking Presentations

In this section you learn how to link presentations. You'll modify Hello.wo so that when the user clicks the iPod image, the Hello presentation is replaced with the Movies presentation.

For the media-object element that displays the iPod image to behave like a hyperlink, you have to surround it with the WOSMILActiveLink element.

  1. Open Hello.wo in WebObjects Builder, if it's not already open.
  2. Put a WOSMILActiveLink element below the first WOSMILMediaObject element.
    1. Enter "Movies" for the pageName binding.
    2. Enter "replace" for the show binding.
  3. Select the second WOSMILMediaObject element and choose Edit > Cut.
  4. Put the cursor inside the WOSMILActiveLink element and choose Edit > Paste.

Save Hello.wo and connect to the application's Hello component in QuickTime Player. When you click the iPod image, the Hello presentation is replaced by the Movies presentation.


  


© 2002 Apple Computer, Inc. (Last Updated March 29, 2002)