$xwiki.jsfx.use() works only for the JavaScript files located on the
file system inside the 'resources' folder. You should use Require.js
instead. See:
Hope this helps,
Marius
On Tue, Mar 24, 2015 at 5:59 PM, Hamster <teunham(a)hotmail.com> wrote:
I have a page "Test6" in space
"Algemeen". On that page I have uploaded
"three.min.js", a javascript file.
I want to use that script, but how?
{{velocity}}
$xwiki.jsfx.use('Algemeen/Test6/three.min.js')
{{/velocity}}
If I use this and then look at the DOM, then this is what I see:
It refers to the colibri skin...but that's not where my "three.min.js" is
located.
Any help is appreciated!
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Refer-to-attached-javascript-file-with-xw…
Sent from the XWiki- Dev mailing list archive at
Nabble.com.
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs