Class jQueryConfig

The jQueryConfig class holds default configuration information common script and CSS libraries. These default values are used by various controls in the Web control framework by default unless you override them explicitly.


  • jQuery
  • ww.jQuery
  • jQuery UI
  • jQuery UI CSS Theme

The values from this class are used globally, using a public object. You can set defaults on this object like this:

loConfig = LoadjQueryConfig()  && Gets public instance
loConfig.jQueryCDNUrl =  ""
loConfig.jQueryUiCDNUrl = ""
jQueryFallbackUrl = "~/myscripts/jquery.min.js"
jQueryUIFallbackUrl = "~/myscripts/jquery-ui.min.js"

You can set this code either globally in your Application's OnLoad() handler, or on a per Process class basis in the OnProcessInit() method of a Process class. If you use the latter make sure to do this in all your Process handlers.

For more detailed info please see How jQueryConfig works.


This object must be used in conjunction with a wwWebPage
as it relies on the Page object to inject script into the

Class Members



Routine that loads the jQuery library onto a page. Web Connection internally uses this routine to embed jquery into the page so if you always use this method jQuery will only be embedded once even if called more than once.




o.IncludejQueryUI(lcScriptLocation, llAsString)


Embeds the ww.jquery.js script into a Web Page. If this routine is used consistently to load ww.jquery.js for all controls and occaions, only one instance of the script will be loaded regardless how often the method is called.

o.IncludewwjQuery(lcScriptLocation, llAsString)


The default jQuery CDN Url


Fallback Url if CDN jquery Url doesn't work


This property holds the default jQuery and jQueryUI load mode. The default value is "Default" which is synonymous with loading resources from CDN (with a local fallback) or from a fixed URL when no CDN is available.


Default jQUery UI CDN Url


The base CSS Theme path (use the base folder of the themes)


Fallback Url if CDN jQueryUI Url doesn't work


The default Theme used for jQuery UI


The default url to the ww.jquery.js location. ww.jquery.js provides the Web Connection AJAX features as well a number of jQuery helper plug-ins all based on jQuery.


Assembly: webcontrol.prg

See also:

How jQueryConfig works

© West Wind Technologies, 1996-2022 • Updated: 03/27/14
Comment or report problem with topic