Select the first letter of the word from the list above to link to appropriate section of the glossary.
<tame allow_nofill DIALOG BUTTON TAG >
Example:
<tame require_filling tamepage: 2/13/97 pword.tam>
<tame form>
<tame required passwd: pword 10> Please enter a password
<tame ^submit: enter password>
<tame allow_nofill ^goto: nopasswd.tam Pages that do not require a password>
<tame /form>
<tame /tamepage>The ^goto tag, with the allow_nofill modifier, will allow the customer who does not wish to provide a password access to a page where this information is not required.
See Also: ^goto, ^prior, ^next
<tame> attach: HTML-AREA; TAMECOMMAND </tame>
Example:
<tame>
attach: onMouseOver="window.status='Buy one and get a free gift';return true"; ^link: newpage.tam This is a great product
</tame>Using the attach modifier a HTML onMouseOver command adds the words "Buy one and get a free gift" to the status line on the browser. This information appears when the mouse arrow is over the link to newpage.tam.
Note: Backable and ^back currently can not be used
on the same page to support different links.
Note: Backable and ^back are designed for use within a dialog. Use dialog buttons for
access between dialogs.
Example:
On the first page to present to the customer the following command is used:
<tame backable ^link: page2.tam NewPage>On the second page, NewPage, the following command is used:
<tame ^back: OldPage>On the first page the hot link "NewPage" will appear. When this link is selected the second page will be retrieved. The second page will have a hot link "OldPage" which will return the customer to the first page.
Example:
Button:
{face: *buy* buy buy.gif alt="[ Buy ]" width=82 height=28 border=0}
This will define a button image for the ^buy button.
Panel:
<tame>
show_panel: cart.pan
HEADER
TITLE [A Basket]
COLUMNS remove item qty descrip price amount
BUTTONS checkstand clear redo
BORDER 4
</tame>This example presents a cart panel on a page with a border of 4.
Table:
<table width=50% cellpadding=1 border=2>
<tr><td>item</td></tr>
<tame workwith: data>
<tame foreach::
<tr><td>{?item}</td></tr>
>
<tame /workwith>
</table>This example will present a table containing items with a border of 2.
See Also: cart.pan, show_panel, define, image, face, button-face-area
Example:
<tame box: mailing_list> Put you on our mailing list?
Provides a checkbox followed by the question on mailing lists. The result of the checkbox is stored in the variable mailing_list which is accessible on future pages with a variable request {&mailing_list}.
Modifier: checked
See also: radio, putcart, getcart
<tame box_quality: ITEM QUALITY VALUE>
- QUALITY:
- The quality of the product for which a value is provided.
- VALUE:
- The special value or option which a customer can choose. For example, yellow instead of the standard white.
Example:
<tame form>
<tame box_quality: thing with red> With RED buttons<br>
<tame box_quality: thing big xlarge> Make it extra large <br>
<tame box_quality: thing color yellow> YELLOW instead of the standard white<br>
<tame ^buy: thing><br>
<tame /form>In this example the customer can select three special options associated with the item "thing". Based on the boxes checked the customer can customize the "thing" with red buttons, extra large size or the color yellow.
Modifier: checked
See Also: radio_quality, text_quality, select_quality, ^buy, form buying
Example:
<tame ^buy: example Buy Me>
Presents a buy button using the words "Buy Me" as the button-face-area.
<tame ^buy: example <img src=star.gif width=10 height=10>>
Presents a buy button using the image
as the button-face-area.
<tame> carry: NAME . . . </tame>
NAME: The names of the variables to carry.
Note: Carry can be used multiple times on the same page. Each time carry is used, more names are added to the carry list.
Example:
<tame> carry: &dept 3 &size 5 </tame>
This example will move the dept and size name value pairs to all future pages.
See Also: ^goto, ^link, variables, pass, transfer
Example:
<tame form>
<tame checked ^buyradio: items "NONE"> Nothing today
<tame ^buyradio: items example>
<tame descrip: example>
<tame &CU price: example>/each
<tame ^buysubmit: Purchase selected items>
<tame /form>This will present a two radio buttons for "None" and "example". The "None" radio button will be pre-selected because of the checked modifier.
<tame checked box: mailing_list> Put you on our mailing list?
Provides a checkbox followed by the question on mailing lists. The box will default to "checked" to indicate yes.
See Also: ^buybox, ^buyradio, box, box_quality, radio, radio_quality
Example:
<tame form>
<tame ^buyselect: thing NONE example widget>
<tame select_quality: thing color red blue pink>
<tame ^buysubmit: Purchase selected items>
<tame /form>This example will present two selection box. When the customer selects an item "example" or "widget" it is associated with the user-defined CLASS "thing". Next the customer selects a color which is also assoicated with the CLASS "thing". Because of the CLASS association the item will appear in the cart with the appropriate color selection.
See Also: form buying, ITEM
Note: This tags is activated when the customer enters the screen. Ensure that the customer is given adaquate warning when this tag is used.
Example:
The most effective use of this tag is to present the customer with a button on one page that links to a clear_cart page.
1st Page:
<tame link: cleanup.tam This way to clear your cart{*pointer*}>cleanup.tam Page:
<tame tamepage: 12/11/96 cleanup.tam>
<tame clear_cart:>
<tame relink: cartpanl.tam>
<tame /tamepage>This example presents the customer with a clear-cart button to clear all items purchased at the shop.
See Also: cart_panel, ^viewcart
<tame>
data_access PATH-FILE>
</tame>
- PATH-FILE:
- The tamepage for which the dynamic results should be stored.
See Also: ^link
<tame define: TAGNAME TAMECOMMAND/HTML>
Example:
Within a *.tag file located in the ~shop directory:
<tame define: navigate <p><center><tame ^home:><tame ^viewcart:><tame ^checkstand:></center>>Adding this command to the define.tag file will provide a new tag "navigate" that can be used on a tame page.
On any page within your shop:
<tame navigate:>This tag will reduce keystrokes by provided the home, view cart and checkstand buttons with one tag.
<tame define_sql: TABLE
SQL-QUERY>
- TABLE:
- The name of the table to be used for future reference in workwith and {?} tags. It should not be confused with the tables in the SQL database from which the data is retrieved. This is the name that the retireved data will be known as on the tame pages.
- SQL-QUERY:
- The exact SQL statement which will retrieve the desired data from the database.
Note: This tag is available when you have installed the additional GateBoy module and have added the database to the ODBD data sources.
Example:
<tame define_sql: new-products SELECT code, price, description FROM products where status = "new">
See Also: define_tdb, {?}, workwith, setgate, define_wgrep
- TABLE:
- The name of the table to be used for future reference by other data access tags such as <tame workwith: TABLE> and {?TABLE,ROW,COLUMN}.
- PATH-FILE:
- The name the file as know by the operating system. This file must reside in the directory given by the <tame setgate: FILE DIRECTORY> tag.
Note: There is no selection as with define_wgrep or define_sql.
Example:
<tame setgate: FILE ~shop>
<tame define_tdb: newfile test.tdb>
<table width=50% cellpadding=1 border=2>
<tr><td>item</td>
<td>price</td>
<td>description</td></tr>
<tame workwith: newfile>
<tame foreach::
<tr><td>{?item}</td>
<td>{?price}</td>
<td>{?descrip}</td>
<td><tame ^buy: {?item}></td></tr>
>
<tame /workwith>
</table>In this example, the table NEWFILE is define and contains all the records in the file test.tdb. Once defined this table can be used to present information to the customers using the workwith and foreach commands.
See Also: workwith, setgate, foreach, {?}, define_wgrep, define_sql
<tame define_wgrep: TABLE PATH-FILE TYPE T FIRSTLINE # FIRSTCOL # LASTCOL # HITS # WORDS W >
- TABLE:
- The name of the table to be used for future reference by other data access tags such as <tame workwith: TABLE> and {?TABLE,ROW,COLUMN}.
- PATH-FILE:
- The name the file as know by the operating system. This file must reside in the directory given by the <tame setgate: FILE DIRECTORY> tag.
- TYPE T:
- The keyword TYPE defines the search to be performed. TYPE requires an argument T, where T is one or more of the options listed below. The default is "af".
- a - All arguments associated with the keyword WORDS must be present for the row of data to be included in the retrieved table. (This is the default setting)
- o - The row will be included in the retrieved table if ANY of the arguments associated with the keyword WORDS is present in the row of data. This feature is NOT currently available.
t - The file uses the tab character to separate columns rather than spaces. (The default is to expect a .tdb data structure which is space delimited.)
f - The file begins with a ;fields definition row that is not to be searched. (This is the default setting)
w - Compare whole words rather than search for the arguments inside of any word. (The default setting is to search within words.)
c - The search will be case sensitive. (The default is case insensitive.)
e - The search will return all lines, up to the hit#, when the query is NULL. This type is required to return all entries in a database. (The defualt setting is to return no lines when the query is NULL.)
- FIRSTLINE #
- The row number # on which to start the search. This is usually not required because the paging software provided it.
- FIRSTCOL #
- The first data column, #. This indicates where the search should begin. (The default is column 2)
- LASTCOL #
- Last data column, #, that will be searched. The default is the last column of the database. The combination of FIRSTCOL and LASTCOL allows a search across a specific range of columns.
- HITS #
- The maximum number of records that match query to return to the table.
- WORDS W
- A list of words, called arguments, for which to search. The keyword WORDS and its arguments must be the last parameter given in this command. If the WORDS F keyword parameter pair not included, then the search resultwill be the entire table.
Note: When designing the database it is useful to group columns that are likely to be searched together.
Example:
<tame define_wgrep: my-shoes shoes.tdb TYPE af FIRSTCOL 3 LASTCOL 5 WORDS "oxford brown" >
This request will search the shoes.tdb for rows containing the words "oxford" and "brown" between column 3 and column 5 and will name the the resultant table my-shoes.
<tame define_wgrep: my-shoes shoes.tdb FIRSTCOL 3 HITS 3 WORDS {&query}>
This request will search the shoes.tdb from column 3 to the last column for first 3 instances of the words in the variable &query. &query is a stored variable usually input by the consumer on a form.
See Also: workwith, setgate, {?}, define_tdb, define_sql
<tame descrip: ITEM>
Example:
- <tame form>
<tame descrip: example>
<tame price: example>
<tame ^buy: example>
<tame /form>- This will present the description, price and a buy button for the product "example". To update the information, changes are made in the product database.
See Also: ^goto, ^cancel, ^finish, ^prior, ^next, ^return
{?TABLE,ROW,COLUMN}
or: {?ROW,COLUMN}
or: {?COLUMN}
- TABLE
- A table name assigned by define_tdb, define_wgrep, or define_sql.
- ROW
- Is the literal value in the first column of the record you wish to retrieve. It may be a variable like &myrecord or a expression like {&page +1}.
- COLUMN
- Is the name of the column from which data is to be displayed.
- Note: This tag need not be contained within a workwith section.
Note: There are no spaces used in this command.
Example:
The capitol of Washington is {?states,Washington,capitol}.
In this example the defined table name is "states" and the row name is "Washington". The column name for the variable to return to the page is "capital". Your customer would see:
The capitol of Washington is Olympia.Note: Once the context of a particular TABLE has been established inside a workwith area, the TABLE slot may be omitted and only the row, and column need be specified.
<tame workwith: states>
Capitol: {?Washington,capitol}
Population: {?Washington,population}
<tame /workwith>
This example shows the state of Washington with the capital and population.
Note: Once the context of a particular row is established inside a foreach template, even the row may be omitted.
<tame workwith: states>
<tame foreach::
Capitol: {?capitol}
Population: {?population}
Rainfall: {?rainfall}
>
<tame /workwith>This example will show all the states and the associated information requested that are listed in the table.
See Also: define_wgrep, define_tdb, define_sql
{?ITEM,COLUMN}
Note: There are no spaces between the question mark and the item or on either side of the comma.
Example:
Consider the following product database:
| ;item | price | descrip | wholesale-price |
| widget | 10.95 | A great widget | 5.95 |
| gizmo | 100.00 | Expensive gizmo | 40.00 |
{?widget,descrip}
Item: {?widget,item}
Retail Price: ${?widget,price}
Wholesale Price: ${?widget,wholesale-price}This example displays information from the database above. It will appear as follows:
A great widget
Item: widget
Retail Price: $10.95
Wholesale Price: $5.95
See Also: define_wgrep, define_tdb, define_sql
Note: In most cases it is exactly what you would put after the href= in a standard hyperlink.
Note: Do not confuse this will a PATH-FILE which is a path to a file on a disk drive.
- New page:
- To access a new page the document_location must have a period in the name. For example: newpage.tam
- Case within the current page:
- To access another location within the current document no period is used in the name. For example: curpage/case.
Note: The tamecase command is required for the document_location to function within a page.
Example:
<tame ^next: page2.tam>
In this example, the "next" page to present is in the same web directory as the current page.
<tame ^link: dept/page.tam>
In this example, the linked page is in the a subdirectory of current page directory location.
<tame ^link: /diffshop/theirpage.tam>
In this example, the linked page is in the web directory of a different shop. It is under the same web root.
<tame ^goto: curpage/case>
In this example, the goto will link to the current page at the location case. The location case must be defined with a tamecase tag.
See Also: thisform, ^link, ^next, ^goto, tamecase
<tame dos: OSCOMMAND PATH-FILE>
- OSCOMMAND:
- Any valid operating system command.
Example:
<tame dos: dir d:\currentdomain\myshop>
This will return the directory of "myshop" to the page on the d drive of the server.
<tame dos: {~cgi-bin/myscript.pl}>
Execute a perl script in the cgi-bin. The ~ is a path-file-operator indicating to use the default cgi-bin location to find the script.
<tame dos: ls -l {~web/TAMICONS}>
Directory listing of the webroot/TAMICONS directory. The ~ is a path-file-operator indicating the path to the web root.
See Also: path-file-operator, document-location
Draft Katherine C. Davis 3/17/97