SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1905 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


Basic JavaScript debugging techniques, including using the alert() function to keep track of variables,
are without a doubt your first course of action. With its built-in JavaScript interpreter, Dreamweaver can
give you error messages in the same manner as a browser. Dreamweaver??™s error handling is very good??”
with many error messages pointing directly to the problem code.
If the errors are severe enough to stop Dreamweaver from recognizing your action file as such, the file is not
listed in the Action drop-down list until the problem is resolved. Generally, this situation means that you
must restart Dreamweaver after each modification until the problem is resolved.
After you debug the minor errors and modify the code, follow these steps to make changes without restarting
Dreamweaver:
1. First, open your action file, make the necessary changes, and re-save the file.
2. Assign your action to a tag and open the behavior??™s parameter dialog box. Without entering any
parameters, click Cancel to close the parameter box.
3. Remove the action from the Actions column by selecting the Delete button.
4. Reassign your action, and Dreamweaver loads the new version.
Remember, JavaScript is case-sensitive: The variable myVar is not the same as myvar or
MyVar or MYVAR; the function doSomething() is not the same as dosomething() or
DoSomething(); and so on.


Pages:
1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917