Inline Scripts

Top Previous Topic Next Topic  Print this topic

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

 

Usage:

 

 

       <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 document's page count.