Before you do any validation inside your objects or create more complex objects, check out
Dreamweaver??™s new insertObject() function. The insertObject() function enables
you to insert code into more than one place, insert code somewhere other than the location of the insertion
point, and validate user input. See the extending Dreamweaver documents under Help ??? Extending
Dreamweaver for more information.
You can see a simple use of the objectTag() function by looking at the source code for Dreamweaver??™s
Insert Line-Break object. In the Dreamweaver 9\Configuration\Objects\Characters folder, open Line
Break.htm and look at the code for this object in Code view. Like most JavaScript functions that can affect
any portion of the page, the objectTag() function is written in the section. Here??™s the function
in its entirety:
function objectTag() {
// Return the html tag that should be inserted
return ???
???;
}
You should allocate a ToolTip to appear when your mouse passes over your new object??™s button.
Enter the desired name in the
section of the HTML object file. The designated
also appears on any dialog boxes used by the object. If there is no title, Untitled Document is displayed
in the ToolTip.
Aside from the comment line, objectTag() returns only one value.
Pages:
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877