Testing and debugging behaviors


show more Testing and debugging behaviors provides you with in-depth training on Web. Taught by James Williamson as part of the Dreamweaver CS3 Beyond the Basics show less
please wait ...

Testing and debugging behaviors

Okay, so we are ready to finish up our finish up our behavior. We thought we had it finished, but it didn't work and that is not uncommon when you are creating something as complex as a behavior. So it's a good idea to know how to debug these and try to figure out what's going wrong. So I have got the index.html file open and this is the file that we tested earlier and it didn't worked. So if you are working along with me with the Exercise Files, just make sure you have that up. Now as we mentioned at the very beginning of the chapter, you are always going to try to start your behavior with the JavaScript function that you know works, and the reason for that is because it makes debugging the code later on a little bit easier, and I am going to show you exactly what I am talking about.

So if I go down in my Exercise Files, we have the index_switcher.htm file and I am going to open that up. Now I am going to start comparing code. This is the JavaScript on the page that w...

Testing and debugging behaviors
Video duration: 5m 52s 11h 10m Intermediate

Viewers:

Testing and debugging behaviors provides you with in-depth training on Web. Taught by James Williamson as part of the Dreamweaver CS3 Beyond the Basics

Subject:
Web
Software:
Dreamweaver
Author:
please wait ...