Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Design > Adobe Creative Suite

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

Error Checking

Notice that before the Send button performs a sendAndLoad, there is a section of code that checks to make sure all required fields have been filled in. This is done before attempting to send data to the server-side script so that any obvious problems with the data can be corrected before the script is (needlessly) called. If, however, there is a great deal of error checking to be done or if it involves complex string manipulations, it might be more efficiently handled by the server-side script instead of bogging down the client's machine. In that case, one would simply send the data, let the server-side script thoroughly check it, and have it send back error codes indicating any problems, which the Flash movie would deal with accordingly.

  • + Share This
  • 🔖 Save To Your Account