Version 2.1
There will be times when you want to use a NetCloak command and specify a series of possible criteria. For example, you may want to hide a portion of a page from Netscape, Mosaic, and Explorer users. Or you may want to show a portion of a page only to those users that are in your internal IP domain, which spans several ranges.
To make these commands easier to use, NetCloak includes a "groups" feature, which allows you to create a group of parameters that can then be used by name within any NetCloak command. You create the group using a special dialog in the NetCloak CGI application, and then simply refer to the name of the group instead of each item individually in NetCloak commands on your pages.
Here is what the "Edit Groups" dialog looks like. It is accessible from the "Edit Groups..." menu option in the "Configuration" menu.
The example above has several groups already created, starting with "Supports_Tables". To see the items in any group, simply click on it and the "Items" list will change to a list of the items in the selected group.
Removing a single item or an entire group is as simple as selecting the item or group and clicking the appropriate "Remove" button.
To create a new group, enter the name of the group into the text entry field underneath the groups list, then click the "Add Group" button. The currently selected group or item has no effect when adding a group.
To add items to a group, first click on the name of the group in the groups list to select it. Then enter the name of the item to add to the group in the text field beneath the items list and click "Add Item". The "Add Item" button is the default button of the dialog so that you may enter a list of items simply by typing each item name and pressing Return.
Once you have created your groups, click "OK" and they will be saved to the "NetCloak.groups" file. Note that you can also edit this file manually with a text editor. Each line in the ".groups" file represents one group.
To use a group in any NetCloak command, refer to it by name within the command, preceded by an exclamation point ("!"). The exclamation point tells NetCloak to look for and use a group rather than try to use the group name as a parameter.
Let's look at the "Supports_Tables" example shown in the sample dialog above. Here is the HTML syntax for showing a table to certain browsers, without using groups:
<HIDE><SHOW_CLIENT Mozilla MacWeb*2 Mosaic>
<TABLE>
<TR><TD>...
By creating the "Supports_Tables" group, we simplify this to:
<HIDE><SHOW_CLIENT !Supports_Tables>
<TABLE>
<TR><TD>...
Not only does this simplify the HTML, but when a new browser comes out that supports tables, you simply add the browser to the group. No changes are needed to the HTML pages at all!
Copyright © 1996 Maxum Development Corporation
820 South Bartlett Road - Suite 104
Streamwood, IL 60107
http://www.maxum.com/