ONLINEGRAPHICPROOFING.COM

damp proofing - www.onlinegraphicproofing.com

Menu


4. For our demonstration, set all three form objects as required fields that accept anything. However, make sure that the stationid field accepts


only a number. When you've finished, click OK. 5. Make sure that the event associated with the behavior is onSubmit. If it's not, select that event now. Save your work and test the results in the browser by choosing the Preview in Browser option from the Document bar (or by pressing F12). As you can see from Figure 10.31, an alert message is displayed when you try to submit the form without entering values in the Employee Name, Station ID, or Problem Description text boxes. Figure 10.31. An alert message is displayed when you try to submit the form without entering values into fields that are set as required. [View full size image]             Summary As you've seen throughout the chapter, behaviors, exposed in the Behaviors panel, offer a new level of development possibilities that require little knowledge of JavaScript. By using some of the behaviors described in this chapter, you can offer a broad range of interactivity for your users that requires little to no development time. Throughout the chapter, I introduced various concepts including JavaScript and how JavaScript code and events are added to the page. This set up a foundation for discussing the Behaviors panel, the catalyst that drives the addition of behaviors. As we progressed through the chapter, we looked at the various behaviors included in the behaviors list in Dreamweaver. In the next chapter, we'll take what we've learned to a whole new level by introducing layers. As you'll see, layers, like behaviors, are an intuitive and easy-to-use feature set exposed by Dreamweaver.           Chapter 11. Layers in Dreamweaver IN THIS CHAPTER An Introduction to Layers Working with Layers Drawing Layers Embedding a Layer with Style Sheets Absolute versus Relative Positioning Inserting Content into Layers Modifying Layer Properties Manipulating Layers using Behaviors Designing a Web Page Using Layers In Chapter 6, "Web Page Structuring Using Tables," you learned that using HTML tables to structure the content of elements on the page is not only easy but, when used correctly, extremely flexible. Unfortunately, you probably also noticed that the more complex the site became, the process of getting the tables