.settings

Previous Next

The following functions give access to USoft web application settings and flags:

Function

Description

.settings.browser()

.settings.browserVersion()

Contains the name of the browser being used.

Contains a browser version. Useful only when the browser is IE.

.settings.compatibilityMode()

Contains a name indicating compatibility with a USoft version.

.settings.get()

Accesses settings from <meta> tags in the "application.html" file that have the "us:" prefix.

.settings.set()

Resets settings from <meta> tags in the "application.html" file that have the "us:" prefix.

.settings.menu()

Contains properties of menu controls corresponding to the user group menu passed by the Page Engine.

CAUTION: To script behaviour with these function calls is unlikely to be good practice. Consider making these settings design-time instead. Resetting settings with .set() ) is unlikely to be effective because for the new setting to take effect a page reload is required, or even an application reload.

Possible values returned by .settings.compatibilityMode are usoft7, usoft8 and usoft9. By setting the application's compatibiliity mode to an older USoft version you disable certain features that were introduced after that version. This gives you backward compatibility at the price of having less available features.

Examples

$.udb.settings.get("loggingLevel")

 

$.udb.settings.set("loggingLevel")

 

 

See Also

The Initial Document