Category:Cumulus MX: Difference between revisions

210 bytes added ,  14:23, 28 June 2020
m
Line 515: Line 515:


The '''webfiles/lib''' folder includes a number of software library items that are needed for the standard web pages included in the MX distribution.
The '''webfiles/lib''' folder includes a number of software library items that are needed for the standard web pages included in the MX distribution.
This is fine if your web site is purely for the provided standard web pages, but if on your web server you also have web pages from third parties, or you have written your own web pages, then you may get conflict because all the library items used by MX are obsolete versions, and in one case MX uses a version of library software withdrawn by its originators due to compile error (so only available form some CDN who provide obsolete versions as its originators insist it must not be used)!
#'''Highstock'''
#'''Highstock'''
#*At the moment, as hinted in previous section, there is an old version of Highstocks included in the '''webfiles/lib''' folder.
#*At the moment, as hinted in previous section, there is an old version of Highstocks included in the '''webfiles/lib''' folder.
Line 520: Line 523:
#*Be careful if you also load the current version for use on web pages not produced by MX, that the browser does not try to reuse your latest version and not recognise that MX wants an older version.
#*Be careful if you also load the current version for use on web pages not produced by MX, that the browser does not try to reuse your latest version and not recognise that MX wants an older version.
#'''jQuery'''
#'''jQuery'''
#*In this library folder there are two files:
#*Be aware that MX distribution is not consistent as different web pages use different obsolete versions of jQuery.
##jquery.tmpl.js
#*#'''gauges.htm''' includes <tt><script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script></tt> to load version 1.8.2 from the Google Content Delivery Node
##*This script replaces spaces by tabs for better indentation. It dates from June 2014.
#*#*You will find at the end of this web template, if you bother to read it, some instructions about how you can change that CDN load, but the instruction is neither grammatically correct, nor understandable for me.
##*This script uses a feature '''CommonJS''' that is no longer supported by jQuery, so again if somewhere else on your website you use a more modern jQuery you may have problems.
#*#'''trends.htm''' includes <tt><script src="lib/jquery/jquery-latest.min.js"></script></tt> to load version 1.9.1 of jQuery loaded from this badly named file, there is nothing ''latest'' about it.
##jquery-latest.min.js
#*#*Ironically, the old version of jQuery that has been selected by MX to be included in the '''webfiles/lib''' folder is the '''only old version that jQuery themselves withdrew, and warn you not to use''' because the error handling content is from a different jQuery version to the correct handling content making the two parts of the code incompatible. In other words, this version only works if everything is set up correctly and no error handling is invoked.
##*The web template '''trendsT.htm''' uses version 1.9.1 of jQuery loaded from this badly named file, there is nothing ''latest'' about it.
##*Ironically, the old version of jQuery that has been selected to be included in the '''webfiles/lib''' folder is the '''only old version that jQuery themselves warn you not to use''' because there is an error in it. However, the way MX uses jQuery does not hit the error in normal use, but you might see an error message about undefined variables if something else goes wrong.
##*Again, you can cannot use the latest version from a suitable CDN, such as the jQuery site itself, because of the jquery.tmpl.js restriction.
#'''SteelSeries'''
#*MX uses a hacked version of the [[SteelSeries Gauges|steel series]] library described elsewhere for all the gauges (see dashboard and gauges tabs) in MX.
#*By default, the '''gaugesT.htm''' web template uses the Google CDN and the even older version 1.8.2 of jQuery.
#*You will find at the end of this web template, if you bother to read it, some instructions that are neither grammatically correct, nor understandable for me.


= The provided web pages =
= The provided web pages =
5,838

edits