The documentation describes how to refer to the library. In HTML it should be something as followed:
This should create the following object:
I tried the following approaches in XPages to load the library:
with the library as an imported file.
<xp:script src="/slideout.js" clientSide="true"></xp:script>
with the library as a client js library (original code imported in the library)
and finally the library code in a script block.
All these three methods seem to fail while the object is not being created.
What should I do to correct this?