SVG Tiny 1.2 brings AJAX to the world of mobile SVG

Extended abstract for submission to SVG Open 2007

Ikivo AB

By the latest version of SVG Tiny script support has been added to the domain of mobile SVG. This allows new classes of SVG applications to be developed with richness well beyond what has been possible in the previous release. Especially it opens up for using the AJAX programming paradigm in conjunction with mobile SVG. The purpose of AJAX programming is to bring client side application responsiveness to client-server type of applications. The basic idea is to limit the transfer of redundant data and to allow asynchronous data transfers thereby reducing the latency perceived by the user and as a side effect also limit the network load. These are important properties in the mobile domain and makes SVG attractive for creating applications. The AJAX style programming of SVG applications is most useful if the application has the following characteristics: Is interactive, retrieves data from a server and contains graphics.

Typical applications are GUIs and applications containing graphical objects mixed with UI. In the current paper it is shown how such an application can be created and structured using SVG and AJAX-style scripting. The application example discussed here is a basic navigation page that allows the user to navigate both locally on the device and retrieve information from remote hosts in the same interface. The interface contains different sections that can be updated with information. To limit the amount of XML interpretation in the scripting, SVG fragments are returned in the responses to the http requests. The fragments can easily be merged into the base application. The application also contains local graphics elements that are updated by retrieving new version of the element that replaces the old versions without affecting other parts of the display. This gives a basic level of security since the portal will not fail even if the responses from the server are corrupted.