jSignage Core

jSignage is a jQuery port for SVG Tiny 1.2 uDOM — it simplifies writing JavaScript for digital signage on SpinetiX players. It provides layer constructors, DOM manipulation, event handling, AJAX, data feed parsing, animations, and interactivity.

Loading the Library

<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     viewBox="0 0 1920 1080">
  <script xlink:href="https://download.spinetix.com/spxjslibs/jSignage.js"/>
  <script><![CDATA[
    $(function() {
      // your code here
});
  ]]></script>
</svg>

The jSignage Object

  • jSignage is the global object added after the library loads
  • $ is a syntactic sugar alias: $() === jSignage()
  • Most methods return the jSignage object itself → chaining: $.media({...}).fadeIn().addTo('svg')

⚠️ JavaScript Engine: SpiderMonkey 17

CRITICAL CONSTRAINT: SpinetiX players use SpiderMonkey 17 (ES5 era).

NOT Supported

FeatureUse Instead
const, letvar
Arrow functions =>function() {}
Template literals `${x}`"str" + x
Array.forEach/map/filter/reducefor loops
Promise, async/awaitCallbacks
class syntaxConstructor functions

Supported

  • var, function, for, while, do-while
  • JSON.parse(), JSON.stringify(), RegExp, try/catch
  • Standard Math, Date, String, Array methods (ES5)

Document Ready Pattern

Always wrap code in document ready — ensures the DOM is fully loaded before manipulation:

$(function() {
  // ALL code goes here
  $.textArea({ fontSize: 60 }).text("Hello World").addTo('svg');
});

Global Variables

ObjectDescriptionDetails
jSignage / $The jSignage libraryjQuery uDOM
localStoragePermanent key-value storageWeb Storage
sessionStorageSession-scoped storageWeb Storage
createSharedVariable()Shared variable accessShared Variables

Data Types

TypeDescription
jSignage ObjectWrapper returned by $() and layer constructors
Plain Object{ key: value } — attribute objects
Timer ObjectHandle from $.setTimeout / $.setInterval

Related Pages

This page is available in English only
هذه الصفحة متوفرة باللغة الإنجليزية فقط
NS
Media La Vista support
Typically replies natively
مرحباً بكم في دعم SpinetiX عبر واتساب

كيف يمكنني مساعدتكم في حلول اللوحات الرقمية، أو البنية التحتية AV/IT، أو منتجات SpinetiX؟
Hello and welcome to SpinetiX Support on WhatsApp.

How can I help you with digital signage solutions, AV/IT infrastructure, or SpinetiX products?