JavaScript Widget Reference

Dekoh ships with widgets that use Prototype, Scriptaculous, and Windows JavaScript libraries for all functions. The following pages describe how to use the widget libraries in your Dekoh application.

A Visual Guide to the Available Widgets

To view thumbnails of all available JavaScript widgets in Dekoh, click here.

Portal Widgets

Basic Controls

Menu Widget
Inline Tray Widget
Dialog Widget
Date Chooser Widget

Information Displays

Message Tray Widget
RSS Reader Widget
Tag Cloud Widget

Selection Utilities

People Chooser Widget
File Chooser Widget
Location Chooser Widget
Selection Tray Widget
Template Chooser Widget
Update Chooser Widget


Dekoh Photo Widgets


Editable Information Displays

Photo Metadata Editor Widget

Information Displays

Slide Show Widget
Photo Strip Widget

Selection Utilities

Collection Importer Widget
Collection Manager Widget

Loading the JavaScripts

The scripts are loaded by a JSlibrary.jsp. The scripts are:

  • builder.js
  • controls.js
  • debug.js
  • dragdrop.js
  • effects.js
  • extended_debug.js
  • prototype.js
  • scriptaculous.js
  • slider.js
  • window.js
  • window_ext.js

To load all the scripts, add this code to the head section of the page:


<script type="text/javascript" src="<%=dekoh.portal.util.StaticFilesURLGenerator.generateStaticFileURL(request, "common",null,"JSlibrary.jsp")%>"></script>

To load a specific javascript, add this code to the head section of the page:


<script type="text/javascript" src="<%=dekoh.portal.util.StaticFilesURLGenerator.generateStaticFileURL(request, "common","prototype","<javascript file>")%>">
</script>

Dekoh ships with common widgets (Portal Widgets) that are used across applications. Applications have their own widgets too, such as Slideshow widget used by Dekoh Photos.

Using Dekoh Widgets with Non-Dekoh Applications

The portal platform comes with GUI components, Dekoh Widgets. The widgets are designed such that they are independent and configurable, and can be used by any web application, not just on Dekoh. Read more here.