Skip to content

Instantly share code, notes, and snippets.

@zeromancer1972
Created September 11, 2014 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeromancer1972/376b9702b27fa8b23a8e to your computer and use it in GitHub Desktop.
Save zeromancer1972/376b9702b27fa8b23a8e to your computer and use it in GitHub Desktop.
filepath_test
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">
<xp:scriptBlock id="scriptBlock1">
<xp:this.src><![CDATA[#{javascript:return "/"+database.getFilePath().replace(/\\/g, "/")+"/test.js";
}]]></xp:this.src>
</xp:scriptBlock>
<xp:scriptBlock id="scriptBlock2">
<xp:this.src><![CDATA[#{javascript:return "/"+session.evaluate("@WebDbName").elementAt(0).toString()+"/test.js";}]]></xp:this.src>
</xp:scriptBlock>
<xp:scriptBlock id="scriptBlock3">
<xp:this.src><![CDATA[#{javascript:"/test.js"}]]></xp:this.src>
</xp:scriptBlock>
</xp:view>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment