• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 25. Interface Extensions > Extending Objects

Extending Objects

Objects are the most indispensable interface features you need when creating Web applications. Objects let you easily add HTML elements to your document. To add an element, such as a table, to your document, you click the Table icon in the Common category of the Objects panel. The table object associated with this icon accepts properties for the table from you by means of the Insert Table dialog box. It then creates a table according to the properties you set and inserts the <table> tag into your document with the required attributes set to the values you specify. You can write your own object extensions to create custom-made objects or add more features to existing objects. These object extensions are the simplest to write.

To be able to write object extensions, you need to know what goes into creating an object and how these objects work in UltraDev. You learned in Chapter 23, “Customizing Dreamweaver UltraDev 4,” that every object has an HTML file, a GIF file, and an optional JavaScript file associated with it. To write an object extension, all you need to do is create the HTML, JavaScript, and GIF files and place them in the folder that corresponds to the category of the object in the Objects folder that is in the Configuration folder. The JavaScript file is optional, so you can choose not to create a separate JavaScript file. Instead, you can embed the JavaScript code in the object’s HTML file. The GIF file must contain the image of the object that appears next to the object name in the Objects panel. If you do not create a GIF file, UltraDev creates a GIF file for the object you create.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint