OpenWGA 7.8 - JavaScript reference


Object:

WGA

Description This is a generic tool object for WGA collecting various related functionality.
Retrieval As window property "WGA" in clientside JavaScript
Properties and methods
Name Purpose
WGA.action(paramObject) Calls a normal (non-AJAX) WebTML Action from clientside Javascript
WGA.b4submit.register(fn) Register a function to be called before an HTML form is submitted
WGA.callAction(actionLink [, urlParams]) Calls a normal (non-AJAX) WebTML Action from clientside Javascript
WGA.contextpath Offers the URL context path under which OpenWGA is reachable
WGA.fireFoxVersion() Returns the  firefox (major) version number when run in Firefox
WGA.IEVersion() Returns the Internet Explorer (major) version number when run in Internet Explorer.
WGA.isAndroid Returns if the current browser is running on a device using the Google Android operating system
WGA.isFirefox Returns if the current browser is Mozilla Firefox
WGA.isGecko Returns if the current browser is a browser using the rendering engine "Gecko" (like Mozilla Firefox)
WGA.isIE Returns if the current browser is a legacy Microsoft Internet Explorer of version lower than 11
WGA.isIPad Returns if the current browser is running on an Apple iPad tablet
WGA.isIPhone Returns if the current browser is running on an Apple iPhone smartphone
WGA.isMobile

Returns if the current browser is running on an operating system that is most likely belonging to a mobile device

WGA.isSafari Returns if the current browser is Apple Safari
WGA.isWebKit Returns if the current browser is a browser using the rendering engine "WebKit" (like Apple Safari or Google Chrome)
WGA.loadScript(config) Loads and executes an external JavaScript resource in an way compatible with AJAX portlets
WGA.onload.register(fn) Registers a JavaScript function to be executed on the "onload" event of the web page