Javascript in GroupServer
From E-Democracy.org
A growing number of browser UI elements in GroupServer are using JavaScript. As this growth continues, the JavaScript environment provided in the GroupServer framework continues to mature. The following is a summary of the JavaScript environment that is in GroupServer as of August 2013.
Contents
gs.content.js.*
Nearly every egg that provides a part of the JavaScript foundation of GroupServer is in this namespace.
jQuery
Everything uses jQuery. GroupServer provides jQuery via gs.content.js.jquery.base. It currently provides version 1.9.1.
Bootstrap
GroupServer provides Bootstrap via gs.content.js.bootstrap. It currently provides version 2.2.2.
jQuery UI
GroupServer provies jQuery UI via gs.content.js.jquery.ui.
Loader
Because many pages are made up of loosely coordinated viewlets, any of which could require any given JavaScript resources, GroupServer developed a dynamic JavaScript module loader that manages which modules have already been requested and retrieved.
Loader is provided via gs.content.js.loader.
Form Supporting JS
- gs.content.js.autocomplete
- gs.content.js.multifile - jQuery's Multiple File Upload plugin
- gs.content.js.required - Resource to validate that a form has all required fields
- gs.content.js.submit - Resource that provides a sane UI implementation of submitting/executing a form
Showing/Hiding Content
GroupServer JS Objects
The following eggs provide JavaScript resources that include JavaScript objects for interacting with GroupServer.
- gs.search.base - Provides a GSSearch object to fetch and display search results.
Home - Mobile - Forums - Wiki - Blog - About - Help - Contact - People - Donate - Rules - Archives