The place for more technical questions for those who want to create new pagetypes or bespoke functionality.

Using JavaScripts

  • Robert Fant
  • Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
Plus d'informations
il y a 9 ans 6 mois #4190 par Robert Fant
Using JavaScripts a été créé par Robert Fant
Greetings All,

I am new to Xerte, and am assuming that what I'm about to ask is even possible, so please bare with me

I would like to be able to use various Javascript Libraries in my projects.
Unfortunately I can't figure out how to import them, nor where to place them.
I have seen where I can write little snippets of JavaScript in the various pages, and call on the library files. I just don't know where to place the specific *.js file.

Any help would be much appreciated,

Thanks,
Robert

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 9 ans 6 mois #4192 par ronm
Réponse de ronm sur le sujet Using JavaScripts
Assuming you mean with the XOT template rather than the Bootstrap template? The latter has a Javascript libraries optional property.
If you want script to be available throughout all the pages in an xot project add an optional script property to the first icon in the tree. Obviously you can add script in there directly or link to script too I think.
HTH
Ron

Xerte developer & trainer
e-learning & m-learning consultant
mitchellmedia.co.uk | xerteacademy.com | learningapps.co.uk
Note: Support here is voluntary and meant for users to support each other.
Need direct commercial support with Xerte? mitchellmedia.co.uk/contact/
Les utilisateur(s) suivant ont remercié: Robert Fant

Connexion ou Créer un compte pour participer à la conversation.

  • Robert Fant
  • Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
Plus d'informations
il y a 9 ans 6 mois #4193 par Robert Fant
Réponse de Robert Fant sur le sujet Using JavaScripts
Thanks Ron.
Yes, that worked.
And yes, you can link to external files.

This should keep me busy for a while.

Robert

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: JohnSmith
Temps de génération de la page : 0.161 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo