For Navigation: Cursor =====>

Selective Detailing:
Tailor your Writing to your Audience!

(IE only)


A major point in online communication is to write exactly what your readers will be interested in. So, first you should be aware of what your reader groups are. But apart from that, how can you write an article such that it will be interesting to different types of readers? - Selective Detailing is a good solution to do that.

In just about any subject of 'non-fictional writing' you have at least two different types of readers.

They both will be interested in different aspects of your writing:

==> So you should be able to let your readers switch some parts of your document on or off, according to their interests.

By the Selective Detailing technique you can do that:

For example, take the previous distinction of "managers" and "implementers". At the begin of your document you should offer, say, a combo box with the entries "appliers only", "implementers only", "both". Then provide the following list:

This line will be visible to managers only.

This line will be visible to implementers only.

This line will be visible to someone thinking to be both, manager and implementer.


Each line is marked as belonging to one class. Now, select your interests in the following combo box:

If you want to get the look-and-feel of a practical application of Selective Detailing, look into my article on the Cascading Floating Menu

.

Switching Classes

There are several ways how you can let the readers select their domain of interest. An easy solution would be a combo box. In HTML this could be coded like this:

<SELECT NAME="choose" ALIGN=TEXTTOP ONCHANGE="SetDetail(choose.value)"
								STYLE="color:green">
  <OPTION VALUE="0">both, APPLIERS and IMPLEMENTERS</OPTION>
  <OPTION VALUE="1"> APPLIERS only</OPTION>
  <OPTION VALUE="2"> IMPLEMENTERS only</OPTION>
</SELECT>

The group indicators can be any sequence of chars. For simplicity, in this example they were called 0, 1 and 2.

Note the function  SetDetail :

SetDetail(choose.value)

 choose  is the identifier of the combo box.

 value is the value of the currently selected option.

The combination  choose.value  represents the value you declared to each option. You can also set the detailing  DIV's belonging to one group or another: separate their class names by '+', e.g. SetDetail("A+B")

The function  SetDetail  loops through all  DIV's  of your document, checks for identical class names and sets the display to '', the display of  DIV's  with non-identical class name to 'none'. Thus the latter ones are suppressed on screen, all the visible information is shifted up. The reader would not notice that there is some information hidden in the background.

In your SELECT you should offer options to all your reader groups (and all combinations you think appropriate). You can do that by the following coding:


<OPTION VALUE="…"> … reader group … </OPTION>

   is the class name of  DIV  to a be displayed when a reader selects this option. It can also be a combination of class names, separated by '+', e.g.  <OPTION VALUE="A+B"> 

 … reader group …  is the text a reader will find in the list of the combo box.

Marking Classes

If you want to mark an information as being relevant to one class only, an easy solution would be to pool it a DIV, declaring it with a class name indicative of the reader group:

<DIV CLASS="…"> 
     :
</DIV>

Within that  <DIV>  you can have any valid HTML-code.

If you have a section that you deem interesting for several groups of your readers, mark the  <DIV>  with a class name combined of the respective indicators, separated by a plus-symbol:

<DIV CLASS="…+…+…"> 
     :
</DIV>

Initializing Classes

Usually you will want your document to come up on screen with the  DIV's  of a certain reader group.

In most cases you can draw up the combo box such that the "initial reader group" is the same as indicated. If you want to have another option appearing initially, add the attribute  SELECTED  to its  <OPTION>  tag.

You can direct the browser to set that detailing right after loading, by coding the  <BODY>  tag of your document like this:

<BODY ONLOAD="InitDetail(group,delay)>"

 group  optional. This is the indicator of the reader group for that your document should be prepared after loading. (Default: the same group as selected by the first option of the combo box.)

 delay  optional: number of milliseconds the browser should wait after loading for setting the reader group.

If you want to combine that with calling another JavaScript function (say,  PlaceDiv(…) , for placing a FollowMenu), you can do that like the following:

<BODY ONLOAD="PlaceDiv(…); InitDetail(…,…)>"

Note that  InitDetail should be called after  PlaceDiv !

Hints for Coding