jQWidgets Forums

jQuery UI Widgets Forums Angular jqwidgets-scripts not compatible with angular universal

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 6 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • logs
    Participant

    I am working on project with angular universal (server side rendering) and i installed jqwidgets-scripts.
    It works fine in the client side because the DOM i available.
    But in the server is not working can you guys support the platform server ?
    here is output error:

    var oldBrowser=document.all&&!document.addEventListener;if(!oldBrowser){(function(be,H){var r,ao,al=be.document,bp=be.location,bu=be.navigator,ay=be.JQXLite,Y=be.$,aS=Array.prototype.push,aE=Array.prototype.slice,aB=Array.prototype.indexOf,z=Object.prototype.toString,b=Object.prototype.hasOwnProperty,ax=String.prototype.trim,D=function(bv,bw){return new D.fn.init(bv,bw,r)},aF=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,au=/\S/,a9=/\s+/,T=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,aG=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,e=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^[\],:{}\s]*$/,u=/(?:^|:|,)(?:\s*\[)+/g,a6=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,L=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,av=/^-ms-/,aT=/-([\da-z])/gi,n=function(bv,bw){return(bw+"").toUpperCase()},a5=function(){if(al.addEventListener){al.removeEventListener("DOMContentLoaded",a5,false);D.ready()}else{if(al.readyState==="complete"){al.detachEvent("onreadystatechange",a5);D.rea
    
    ReferenceError: document is not defined
        at Object../node_modules/jqwidgets-scripts/jqwidgets/jqxcore.js

    Thanks in advance.


    Peter Stoev
    Keymaster

    Hi logs,

    jQWidgets is User Interface library and expects the “document” keyword which comes from all web browsers to be defined. We work with DOM objects, create them, add them, setup them using the document object. Our library is also Client-Size library i.e we do not have Server Side rendering. jQWidgets is written in Javascript.

    Best Regards,
    Peter

    jQWidgets Team
    https://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.