This is the same syntax as Vitalize! 3. You have to use an OBJECT tag (for Internet Explorer) that contains an EMBED tag (for the other browsers) :
<OBJECT ID="Vitalize1" WIDTH=320 HEIGHT=200 type="application/x-cnc"
CLASSID="CLSID:EB6D7E70-AAA9-40D9-BA05-F214089F2275"
CODEBASE="Please login to see this link.">
<PARAM NAME="URL" VALUE="yourapp.ccn">
<EMBED TYPE="application/x-cnc"
SRC="yourapp.ccn"
checkversion="4,0,254,0"
PLUGINSPAGE="Please login to see this link."
WIDTH=320
HEIGHT=200>
</EMBED>
</OBJECT>
Comments
- replace yourapp.ccn by the name of your application.
- set the width and height of your application in the width and height parameters of the OBJECT and EMBED tags.
- you can replace Vitalize1 by any identifier.
- application/x-cnc is the MIME type of Vitalize! CCN files.
- the Version number in the OBJECT tag (4,0,254,0) is the version of Vitalize! required by your application. It is recommended to use the latest version number. If the installed version of Vitalize! has a lower number, then Internet Explorer will ask the user if s/he wants to install the new version.
- the CHECKVERSION number in the EMBED command is similar. When Vitalize! is executed from another browzer (Firefox, Netscape, Opera, etc), then it will compare this version number to the version number of the installed version and will proposes the user to go to the download page of Vitalize! if necessary.
Optional parameters
- Background color : use the following parameters to change the background color of the plugin window. This window is displayed while the browser is downloading the CCN file.
OBJECT tag
<PARAM NAME="BackColor" VALUE="red,green,blue">
EMBED tag
BackColor="red,green,blue"
red,green,blue = components of the color to use, between 0 and 255
- Progress bar : if you want a progress bar to be displayed while the browser is downloading your application, use the following parameters :
OBJECT tag
<PARAM NAME="ProgressBar" VALUE="x,y,width,height">
<PARAM NAME="ProgressBarColor" VALUE="red,green,blue">
<PARAM NAME="ProgressBarBorderColor" VALUE="red,green,blue">
EMBED tag
ProgressBar="x,y,width,height"
ProgressBarColor="red,green,blue"
ProgressBarBorderColor="red,green,blue"
x,y = position of the progress bar
width,height = width and height of the progress bar
red,green,blue = components of the color to use, between 0 and 255
- Disabling sounds and/or music : use the following parameters to disable the sounds and/or the music in the CCN file. Note 1: only the internal sounds & music are disabled with this option, the sounds played by video objects for example are not disabled. Note 2: if you use these options, CCN files created with TGF1 or MMF1 are not executed.
OBJECT tag
<PARAM NAME="Sounds" VALUE="no">
<PARAM NAME="Music" VALUE="no">
EMBED tag
Sounds="no"
Music="no"
- Disabling specific extensions : use the following parameter to prevent CCNs using some extensions from being executed.
OBJECT tag
<PARAM NAME="DisableExts" VALUE="extension1,extension2,etc">
EMBED tag
DisableExts="extension1,extension2,etc"
extension1,extension2,etc are extension filenames without file extension, for example kcbutton.
- Disabling all extensions except for some of them : use the following parameter to allow only CCNs using specific extensions.
OBJECT tag
<PARAM NAME="EnableExts" VALUE="extension1,extension2,etc">
EMBED tag
EnableExts="extension1,extension2,etc"
extension1,extension2,etc are extension filenames without file extension, for example kcbutton.
- Custom parameters : you can use your own parameters and retrieve them with the CommandItem$ function of MMF2/TGF2.
OBJECT tag
<PARAM NAME="NameOfYourParameter" VALUE="ValueOfYourParameter">
EMBED tag
NameOfYourParameter="ValueOfYourParameter"
and then in your application use CommandItem$("NameOfYourParameter") to retrieve its value.
Example with all the parameters
<OBJECT ID="Vitalize1" WIDTH=320 HEIGHT=200 type="application/x-cnc"
CLASSID="CLSID:EB6D7E70-AAA9-40D9-BA05-F214089F2275"
CODEBASE="Please login to see this link.">
<PARAM NAME="URL" VALUE="yourapp.ccn">
<PARAM NAME="BackColor" VALUE="255,255,255">
<PARAM NAME="ProgressBar" VALUE="0,0,320,200">
<PARAM NAME="ProgressBarColor" VALUE="255,0,0">
<PARAM NAME="ProgressBarBorderColor" VALUE="0,0,0">
<PARAM NAME="NameOfYourParameter" VALUE="ValueOfYourParameter">
<EMBED TYPE="application/x-cnc"
SRC="yourapp.ccn"
checkversion="4,0,254,0"
PLUGINSPAGE="Please login to see this link."
WIDTH=320
HEIGHT=200
BackColor="255,255,255"
ProgressBar="0,0,320,200"
ProgressBarColor="255,0,0"
ProgressBarBorderColor="0,0,0"
NameOfYourParameter="ValueOfYourParameter">
</EMBED>
</OBJECT>