Documentation Archive Developer
Search
Table of Contents Previous Section 

Dynamic Images

The elements WOImage and WOActiveImage are dynamic images. At run time, WOImage is rendered as a passive image and WOActiveImage as a mapped, active image. To create them, click  or  in the toolbar, respectively.

 A static image element requires you to specify its pathname directly in the HTML. With dynamic images, you bind the filename attribute to specify the name of an image file in your project, or in a framework. You can bind this attribute to a variable or method so that the filename is dynamically generated at run time.

 You can also create a WOImage by dragging an image from the file system into your component (see "Dragging Elements into the Component Window" for more information). An alert appears, asking whether you want to add the image to the project (if it is not already in the project). If you do, the file is added to the Web Server Resources suitcase of your project.

Table of Contents Next Section