Section 2.10. Frequently Asked Questions?


2.10. Frequently Asked Questions?

Q:

I used the onBlur handler, instead of onChange. Wouldn't that work also?

A:

onBlur will run whenever the customer leaves the phone number field, so that's also a good option. But with onBlur, getCustomerInfo() will get run even if the customer didn't change the phone number. onChange will only run when the number changes, so it's probably a better choice.




Head Rush Ajax
Head Rush Ajax (Head First)
ISBN: 0596102259
EAN: 2147483647
Year: 2004
Pages: 241

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net