Register

What do all the HTML Frame variables do ($EXAMPLE$)?

General Tips & Tricks
Site Admin
User avatar
Posts: 1073
Joined: Fri May 26, 2006 3:15 pm
Location: San Jose, CA

What do all the HTML Frame variables do ($EXAMPLE$)?

Postby James » Mon Aug 27, 2007 10:03 am

-------------
$FILE_HEADER$
-------------
This variable should appear at the top of each HTML file. It adds "the mark of the web" tag that looks like this: <!-- saved from url=(0021)http://www.qarbon.com -->.
You can find more information on "the mark of the web" here. http://msdn2.microsoft.com/en-us/library/ms537628.aspx
The purpose of the mark of the web, is get around the Interent Explorer Yellow Security Warning Bar that says something like this:
"To help protect your security, Internet Explorer has restricted this webpage from running scripts or ActiveX controls that could access your computer. Click here for options..."
IE displays this because you are loading the Flash based Viewlet, from your local machine. IE is worried that the ActiveX control might have access to your system. The trick is to make IE think that this is being loaded from a web page, so that it runs under the web security context, which doesn't allow access to your local machine.
The mark of the web does this. It forces the page to run under Internet Explorers web security context and gets rid of the yellow bar warning. The problem is that the external files were still under a local context. So Internet Explorer displays the error message "Access Denied" since you are switching from web to local context.

For Example:
$FILE_HEADER$
<HTML>
</HTML>

------------------
$VIEWLET_HEAD_TAG$
------------------
This tag must appear within the <HEAD> </HEAD> tag of the HTML page containing the Flash Viewlet. It will add JavaScript that is required for Viewlet Actions such as "Display URL" and "JavaScript". Also JavaScript required for the selected Reporting system (i.e. Scorm, AICC, ViewletCentral) will be placed here too.

For Example:
<HTML>
<HEAD>
$VIEWLET_HEAD_TAG$
</HEAD>
</HTML>


------------------------
$VIEWLET_BODY_ATTRIBUTE$
------------------------
This variable must appear within the <BODY> tag as an attribute of the HTML page containing the Flash Viewlet. It will add JavaScript that is required for the selected Reporting system (i.e. Scorm, AICC, ViewletCentral) will be placed here too.

For Example

<HTML>
<BODY $VIEWLET_BODY_ATTRIBUTE$>
</BODY>
</HTML>


------------------
$VIEWLET_BODY_TAG$
------------------
This variable must appear within and at the top of the <BODY> </BODY> tag of the HTML page containing the Flash Viewlet. It will add JavaScript that is required for the selected Reporting system (i.e. Scorm, AICC, ViewletCentral) will be placed here too.

For Example:
<HTML>
<BODY>
$VIEWLET_BODY_TAG$
</BODY>
</HTML>


---------------
$VIEWLET_MOVIE$
---------------
This variable will be replaced with the named of the viewlet.swf file that will be generated. It can be used within the <OBJECT> tag to load the flash file.

For Example:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="$VIEWLET_WIDTH$" height="$VIEWLET_HEIGHT$">
<param name="movie" value="$VIEWLET_MOVIE$">
<param name="quality" value="high">
<param name="bgcolor" value="#ffffff">
</object>


--------------
$VIEWLET_NAME$
--------------
This variable will be replaced with the view project name with the qvp or vie extension removed, spaces replaced with underscores and special characters removed. This allows this name to be used as part of a url or filename.

---------------
$VIEWLET_TITLE$
---------------
This variable will be replaced with what is entered in Project Properties > Viewlet Profile > Viewlet Title

------------------
$VIEWLET_KEYWORDS$
------------------
This variable will be replaced with a set of meta keywords to allow search engines to find this Viewlet.

---------------------
$VIEWLET_DESCRIPTION$
---------------------
This variable will be replaced with what is entered in Project Properties > Viewlet Profile > Viewlet Description

---------------
$VIEWLET_WIDTH$
---------------
This variable will be replaced with the Viewlet width entered in Project Properties > Flash > Size > Width. If Scale to Fit Web Page checkbox is selected, this value will be "100%"

---------------
$VIEWLET_HEIGHT$
---------------
This variable will be replaced with the Viewlet height entered in Project Properties > Flash > Size > Height. If Scale to Fit Web Page checkbox is selected, this value will be "100%"

--------------------
$VIEWLET_PARAMETERS$
--------------------
This variable must be placed as a URL parameter of the movie.swf URL reference in the <OBJECT> tag. Its required for Qarbon ViewletCentral or Email reporting.

For Example:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="$VIEWLET_WIDTH$" height="$VIEWLET_HEIGHT$">
<param name="movie" value="$VIEWLET_MOVIE$?$VIEWLET_PARAMETERS$">
<param name="quality" value="high">
<param name="bgcolor" value="#ffffff">
</object>



-------------
$AUTHOR_NAME$
-------------
This variable will be replaced with what is entered in Project Properties > Viewlet Profile > Author > Name

-------------
$AUTHOR_EMAIL$
-------------
This variable will be replaced with what is entered in Project Properties > Viewlet Profile > Author > Email


-----------------
$AUTHOR_COMMENTS$
-----------------
This variable will be replaced with what is entered in Project Properties > Viewlet Profile > Author > Comments

---------
$COMPANY$
---------
This variable will be replaced with what is entered in Project Properties > Viewlet Profile > Company > Company

------------
$DEPARTMENT$
------------
This variable will be replaced with what is entered in Project Properties > Viewlet Profile > Company > Department

Return to FAQs - ViewletBuilder 5.x

Who is online

Users browsing this forum: No registered users and 1 guest