Append Generator

Append a portion of the source into the front of the specified section of the target. The locations to be copied / pasted are specified through the object's <param> values.

The Append Generator is made available by inserting the following Java object into the <head> section of the page:

    <object declare classid="HTMLDropOps" title="Your Name Here">
       (More <param> definitions go here...)
    </object>

Use this <param> tag if you want it to respond to drops:

      <param name="drop" value="append">

and/or this <param> tag if you want it to respond to redrops:

      <param name="redrop" value="append">

The <param> values supported are:

sourceId

The contents of the <tag id="sourceId"> will be inserted into the target. One of the sourceTag or sourceId parameters must be set.

targetTag

The new information will be placed at the start of the <tag>. One of the targetTag or targetId parameters must be set.

targetId

The new information will be placed at the start of the <tag id="targetId"> tag. One of the targetTag or targetId parameters must be set.

resultFile

Specifies the name of the file to create from the drop. If this isn't set, the result will be the same as the generator file, with ".htmg" replaced with ".html"

Two special values can be used in this parameter: %source% is replaced by the name of the source of the content, and %target% is replaced by the name of the target file.

The following HTML code will result in the body of the source file being inserted at the end of the target section (identified by a tag in the target file with an id="append-target" attribute.

    <object declare classid="HTMLDropOps" title="Append Example">
      <param name="drop" value="append">
      <param name="sourceTag" value="body">
      <param name="targetId" value="append-target">
    </object>

Later in the document, where we want to have the append take place, we would have a tag like this:

    <div id="append-target">
         <p>You could have something here, or not...</p>
    </div>

It doesn't have to be a <div> tag, any tag would do. The <div> tag is convenient for this purpose, however, because it doesn't chang the formatting in any way.