Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Validation problem



On Oct 3, 2006, at 12:52 PM, Paul Wasmund wrote:

We are doing data entry validation in our onblur javascript function. Is there a way for this function to cause the onblur to abort so the focus remains in a field that has invalid data?

I'm not certain if this will work for you, but calling event.preventDefault() is the usual way to prevent the default behavior for an event.


    -- Darin

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden
References: 
 >Validation problem (From: Paul Wasmund <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.