decorative banner

Creating cards


    A card is a small collection of data that is displayed in a WML browser. A card can contain text, images, and additional WML elements that allow users to input data and navigate between cards.

To add a card to a deck:

    Drag the Card icon from the WML Elements set in the Objects palette into the document window. Release the mouse button when the pointer is over the colored area of the wml element.

To specify card attributes:

  1. Select a card in the document window.
  2. In the Card Inspector, enter a card title in the title text box.
  3. WML browsers render card titles in a variety of ways (as bookmark names, tooltips, and so on). Limit titles to 15 character or fewer to prevent truncation of the text.

  4. Set the following optional attributes in the Card Inspector:
    • newcontext to choose whether or not the browser context should be reinitialized when a user accesses the card. Choose true if you want the browser to clear variables binding and navigational history when a user accesses the card.
    • ordered to specify how the card is organized. Choose true if the card will have fields that should be completed in a linear order. Choose false if the card will have fields that can be completed in any order
    • onenterforward, onenterbackward, and ontimer to include event bindings inside the card element. (See Working with events.)