xpages - How do I add a serverSide Javascript to a theme? -
according book "mastering xpages" powerful feature resources in themes use tag <resources> , load both clientside , serverside stuff.
i have tried load serverside javascripts not load.
can clientside javascript load.
my theme:
<resources> <script target="xsp" src="/commonssjs.jss" clientside="false" type="text/javascript" ></script> <script target="xsp" src="/xpserverside.jss" clientside="false" type="text/javascript" ></script> <script target="xsp" src="/xpcgivariables.jss" clientside="false" type="text/javascript" ></script> <script target="xsp" src="js/jquery-1.9.1.min.js" clientside="true" type="text/javascript" ></script> <script target="xsp" src="include.js" clientside="true" type="text/javascript" ></script> </resources>
i know don't load 'cause have call in framework function in 1 of them.
please advice!
a theme gets applied during render response phase. ssjs libraries not available in earlier phases. can use sjss library e.g. button not logic in e.g. beforerenderresponse phase (for need add ssjs libraries directly xpage/custom control).
Comments
Post a Comment