XML technologies / SVG / SVG basics and possible applications / What is SVG? / The DOM enables script access
(Excerpt from “Das Einsteigerseminar SVG — Webgrafiken mit XML” by Helma Spona)
Scripts can control a graphic because an SVG graphic has a DOM. The DOM provides objects and methods for manipulating the graphic and adding or removing elements.
The SVG DOM also has events for responding to user actions. For example, perform an action on a mouse click or let users rearrange graphic elements by dragging and dropping.
DOM access is not limited to JavaScript or VBScript in a web page. Any object-oriented programming language can access the object model, such as VBA, Visual Basic, Java or C++. This makes SVG especially interesting for developers.
Copyright © verlag moderne industrie GmbH 2001
You may print the online version for your private use.
Otherwise, this chapter from “Das Einsteigerseminar SVG — Webgrafiken mit XML” is subject to the same conditions as the bound edition. The work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
verlag moderne industrie GmbH, Justus-von-Liebig-Straße 1, D-86899 Landsberg/Lech, fon ++49 (0) 81 91 / 125 – 0, leserservice(at)mi-verlag.de
back to top