Chapter: Internet & World Wide Web HOW TO PROGRAM - Rich Internet Application Client Technologies - Adobe Dreamweaver CS3

Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail

Scripting in Dreamweaver

Dreamweaver also allows us to add JavaScript to our pages manually in the Code view or automatically using the Behaviors panel.

Scripting in Dreamweaver

 

Dreamweaver also allows us to add JavaScript to our pages manually in the Code view or automatically using the Behaviors panel. To open the Behaviors panel, either select Be-haviors from the Window menu, or press <Shift>-F4. The Behaviors panel appears as a tab option in the Tag panel (Fig. 20.30).

 

The Behaviors panel allows us to add commands to elements of a web page that trigger various JavaScript actions in response to browser events. To add an action, select an ele-ment on the page. Click the + button in the Behaviors panel to display a pop-up menu of applicable actions. The pop-up menu offers several predefined JavaScript actions, such as Go To URL or Popup Message. A developer also can manually write an action by selecting Call JavaScript from the pop-up menu and entering the desired code into the Call Java-Script dialog. Selecting Get More Behaviors… opens a web page that provides options to download or purchase additional behaviors, extensions, functions and code. After com-pleting the dialog associated with the selected action, the action and a default event appear in the Behaviors panel. A developer can change the event that triggers this action by clicking the event field and choosing an event from the drop-down list that appears.

 

Dreamweaver supports several server-side scripting languages, discussed later in the book, such as ASP.NET, JSF, PHP and ColdFusion. Server-side scripting elements, such


as Databases and Bindings, can be accessed in the Window menu. Tags of the various lan-guages can also be selected from the Tag Chooser, which is accessed by selecting Tag… from the Insert menu, or from the icon in the Insert bar (Fig. 20.2). Dreamweaver allows the user to add scripting elements only where applicable.

 

Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail


Copyright © 2018-2020 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.