Step 1 | Step 2 | Step 3 | Step 4 |
Step 1
Clothing - Static HTML page with the label embedded and initialized using
PARAM elements in the OBJECT tag.
This is a startup example. In it we embed the Active Label ActiveX and we initialize it with a label, by using PARAM elements. This can be done by using the Active Label Browser - you can select "Show HTML" from its File menu to obtain the HTML code. Then a little change can adapt it to your page. In our case we just changed the WIDTH and the HEIGHT of the OBJECT element.
Up to this point this example isn't actually useful. We will make it one step closer to the real world in the next examples which use it as a base but also contain a server side code to supply some data.
We recommend you open this page also in a text editor and take look inside. All the interesting code is inthe beginning of the page. The PARAM elements look like this:
<PARAM NAME="CMD#" VALUE="command:paramters">
Where # varies from 0 to a certain number and command and parameters define an element in the label or a group of label settings.
The names CMD# must be continuous - i.e. the first one must be CMD0, the next one CMD1 and so on. Active Label ActiveX treats this much like a text file with Active Label commands. It executes them continuously beginning with CMD0 until it cannot find the next one. So, if you omit a number the commands after it will not be executed.
There is another way illustrated in the next example, but this approach is very convenient for static label design regardless of the weird looking code. You will see the benefit when we put a server side code.
Other notes: As you will see the first image has no Src set (see IMAGE:Image: ... which is in CMD6). This is because we intend to fill this from the data. Of course, we can set a stub image and make it look better on the screen. Furthermore you will see that we have fields for the internal cache defined and some of them linked to certain elements. See CMD20 to CMD26, but we have no data, so this is just a preparation for a future step we will perform when we add server side code.