JavaScript™ is a prototype-based
scripting language supported natively by most modern Web browsers,
allowing the creation of dynamic Web content and enhanced user
interfaces.
In this documentation, the term JavaScript
is used in the broader scope, including the JScript
variant supported by Microsoft® Internet Explorer® .
The JViews Maps Web
technology exposes the JavaScript library internally used by the JViews Maps JSF components
so that you can build lightweight and highly interactive Web
applications directly using JavaScript. This gives you more control
over the client-server communication, and how the client side and
server side respond to user interaction.
The JViews Maps
JavaScript Web Technology consists of:
- A server-side Java API
- The JavaScript library
The server-side Java API
The JavaScript library in the JViews Maps Web technology
relies on Java servlets to handle the client requests and produce
the appropriate response. A client request is triggered through
JavaScript API to update the graphic view, usually as a
consequence of user interaction.
The servlets are responsible for decoding the client request
and processing the appropriate response, which may be a new
image update representing the current state of the map view.
When developing JViews basic JavaScript Web applications, the
servlets must be subclasses of IlvManagerServlet (associated with an IlvManagerView). When developing JViews Maps JavaScript
Web applications, the servlets must be subclasses of IlvMapServlet (associated with an IlvSDMView.
For more information about the different servlets available and
how to extend and/or customize them, see JViews servlet implementation.
The JavaScript library
The same JavaScript library internally used by the JViews Maps JSF components
is available for direct access when developing JViews Maps JavaScript Web
applications. This library provides the JavaScript components
required to build the application’s user interface.
For more information about the different JavaScript objects and
their API, see JViews JSF applications versus JViews
JavaScript applications and the Javascript API reference
documentation.