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

Finding Objects

Whenever you write an extension that requires input from the user, you’ve got to have a form with at least one field. To get the value of the field, you first need to be able to find it. The old-fashioned way is to use document.theFormName.theFieldName.values.

If you add a link to the dwscripts.js file (located in Dreamweaver MX 2004\Configuration\Shared\Common\Scripts\), you can take advantage of Macromedia’s dwscripts.findDOMObject() function. A link to the JavaScript file would look similar to the following code:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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