Category:Cumulus MX: Difference between revisions

m
 
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'''
#*At the moment, as hinted in previous section, there is an old version of Highstocks included in the '''webfiles/lib''' folder.
#*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'''
#*Be aware that MX distribution is not consistent as different web pages use different obsolete versions of jQuery.
#*In this library folder there are two files:
#*#'''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
##jquery.tmpl.js
#*#*You will find at the end of this web template, if you bother to read it, some instructions about how you can change that areCDN load, but the instruction is neither grammatically correct, nor understandable for me.
##*This script replaces spaces by tabs for better indentation. It dates from June 2014.
##*The web template #'''trendsTtrends.htm''' usesincludes <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.
##*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.
#*#*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 therethe error handling content is anfrom errora indifferent it.jQuery However,version to the waycorrect MXhandling usescontent jQuerymaking doesthe nottwo hitparts of the errorcode inincompatible. normalIn useother words, butthis youversion mightonly seeworks anif erroreverything messageis aboutset undefinedup variablescorrectly ifand somethingno elseerror goeshandling wrong.is invoked.
##jquery-latest.min.js
##*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 =
5,838

edits