E-Democracy Pages Wiki

Search Wiki

 

Tools

 

Javascript in GroupServer

From E-Democracy.org

Revision as of 10:03, 20 August 2013 by Wbushey (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

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

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