Embedding Javascript files via themes
<theme extends="oneuiv2.1">
	<!-- 
		Use this pattern to include resources (such as style sheets
		and JavaScript files that are used by this theme.
	-->
	<resource target="xsp">
		<content-type>application/x-javascript</content-type>
		<href>clientscript.js</href>
	</resource>
</theme>





This is for client side scripts. Server side scripts need a seperate notation.

XML
Serdar Basegmez
Rating
13

All code submitted to OpenNTF XSnippets, whether submitted as a "Snippet" or in the body of a Comment, is provided under the Apache License Version 2.0. See Terms of Use for full details.







No comments yetLogin first to comment...