Inline Scripts

Top Previous Topic Next Topic  Print this topic

XF Ultrascale 2011 allows the insertion of inline JavaScript or Visual Basic code within fo:block and fo:inline elements, using the xf:inline-script tag.

 

The syntax is as follows:

 

 

<fo:block>

       <xf:inline-script type="js|vb">

               <!-- insert JavaScript or VB code here -->

       </xf:inline-script>

</fo:block>

 

 

The type attribute specifies the type of script that is expected in the xf:inline-script element. The possible values are: js for JavaScript and vb for Visual Basic.

 

NOTE:

If a DAL Job having an overlay contains Java scripts within Inline Scripts, the $mergedPageCount parameter is used to retrieve the number of pages of the document.