IE security settings |
---|
Warning!
Your current Internet Explorer security settings may prevent the ActiveX
to show on the pages or a security warning may be issued. The Active Label
setup marks the files in the Samples directory with Internet security zone
ID thus avoiding the Local Machine Lockdown in Microsoft Internet Explorer
on systems with XP SP2 and later, but you may still have your Internet
Security set to High and ActiveX forbidden on all the pages on the
Internet. You can avoid this by changing the security settings or by
putting the examples on a trusted WEB site and browsing them online from
it.
If you decide to use ALP, by opening the examples in the ALPFrame browser you will avoid these problems. Note that ALPFrame browser has its own security features and does not put you at risk by allowing the ActiveX to run. |
Deployment on a WEB server |
When deploying any of the examples on a
WEB server consider the following:
1. On the latest versions of IIS it is configured by default to disallow serving files with unknown MIME type. You will need to define a MIME type for the *.activelabel files on the server. We recommend application/nw-activelabel, but you can set it to application/octet-stream as well. Although text/plain will work It is not recommended because Active Label can save also in binary format and specifying text/plain may render some .activelabel files unreadable. 2. If the example you are running uses a database make sure that it can be read and written (for the examples that implement data writing functionality). All WEB examples are tested on all the Microsoft IIS versions from 4.0 to 6.0 if you have any problems please check the notes above and ask us if they do not cover the problem. |
The examples in this directory are grouped by technology. Each sub-directory contains different kind of examples:
labels - Labels only. These examples are intended for viewing with the Active Label Browser. You can use the shortcut "Example labels" in the Start Menu group of the product (Programs->newObjects->Active Label) to open them directly. These examples are for non-developers and for developers who need to take a look or use for testing some pre-designed labels.
SimpleWEBRepository - A simple ASP (Active Server Pages) application that can be installed on any machine with IIS or PWS to act as online label repository. The application is designed to work with the Active Label Browser. See the install instructions in its directory. Can be interesting also for developers who want to implement WEB based applications that work directly with the Active Label Browser (i.e. mostly intranet application that use as front-end Active Label Browser instead of IE).
WEBExamples - Various WEB and WEB related examples showing how to host the Active Label ActiveX on WEB pages and integrate label design/view/print functionality in WEB based solutions. The examples in that area will be extended constantly - if you are interested in something in particular we will be happy to include an example suggested by you. The examples in this area:
Clothing - Two sets of examples that do the same but in different ways. The example represents some kind of clothing labeling that must be integrated in a WEB application. The work is done in several steps beginning with static HTML pages which show the basics (e.g. how to host the control) and more functionality is added gradually. The last steps include server-side scripts that implement typical tasks for a WEB application and thus show how the data needed for the labels and the labels themselves can be integrated in the WEB application's database. The examples are in ASP (Active Server Pages), but this is not a requirement - any WEB programming language and technique can be used. The code that is not directly related to Active Label ActiveX is minimal and even developers who do not know ASP should be able to understand the example's functionality without problems. To run the examples put them in a virtual directory on a WEB site hosted by IIS or PWS, or alternatively you can install ALP (Active Local Pages) and run them in-place (double-click alp.site file to open with ALP). We recommend viewing the both lines (Using PARAM and Using DATA) in parallel - this way you will be able to see from the first look which technique is best for the tasks you have to do. These examples can be used as tutorial.
Events - A playground for developers who need to implement more advanced tasks with the newObjects Active Label ActiveX control. The example intercepts all the events fired by the control and dumps them in a text area on the page. You can change the example or just play with it to see how and why the events occur and see how to use them.
Online editor - A reference implementation of an online label editor which saves the designed labels in the WEB application's database on the server side. Although the example uses ASP as server-side language almost all of the important code which you will want to see is a client side Javascript. To run the example you will need to deploy it on a Microsoft IIS or PWS WEB server or install ALP and open it in-place (by double-clicking the alp.site file). The label editor is something you may want to put in the administrative/management pages of the WEB application and allow the responsible personnel design/change the labels used in the application directly in it. If you want to see some code about view/print only functionality the example also can be useful if you want to see some code related to such tasks.
HTMLHelpFile - Rather un-typical example that shows how the Active Label ActiveX can be used in Windows HTML Help files. The example has very little code in it, but it is more interesting as a pointer to other opportunities.
WEBTutorial (unfinished) - Step-by-step tutorial for WEB developers who want to embed label design and printing functionality in their WEB applications. Covers all the important areas of the control usage and techniques for integration with WEB applications.