Summary
Tutorial summary
Because of its structure as an XML document, an SVG image
can be both created dynamically and manipulated interactively by a user. This tutorial has demonstrated the use of ECMAScript/JavaScript to enable interaction with an SVG image. It has also discussed dynamically producing an SVG image.
Topics included:
- Producing a simplified floor plan in SVG
- Embedding the SVG in an HTML document and communicating
events in the HTML document to the SVG image
- Discussion of the SVG
viewBox attribute and how to use
it to control scrolling of SVG
- Scrolling between rooms using ECMAScript scripting
- Deleting parts of the floor plan under script control
- Adding new parts of the document under script
control
- Dynamically generating SVG using XSLT
Using ECMAScript and XSLT with SVG is a powerful and
flexible approach to creating interactive SVG dynamically. This tutorial has
introduced you to techniques that you can apply in larger projects.
7 of 9 |
Previous |
Next
Comments
Back to top
Help: Update or add to My dW interests
What's this?
This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.
And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.
View your My developerWorks profile
Return from help
static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=XML
ArticleID=138236
TutorialTitle=Interactive, dynamic Scalable Vector Graphics
publish-date=06272003
author1-email=SVGDeveloper@aol.com
author1-email-cc=