[jQuery] Re: Anyone see anything wrong in this code?
Commenting out the blur line does prevent IE from locking up. (Why doesn't this happen in FF?), but then, of course, no validation occurs. When I change blur to keyup everything seems to work fine. What's up with that? Keyup is fine, but I prefer to allow users a little more time to correct entries rather than hammering them with an error message per keystroke, perhaps. I did comment out the debug statement, too... forgot that would prevent submission... Thanks, Dan... Rick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dan G. Switzer, II Sent: Thursday, April 12, 2007 9:49 AM To: [EMAIL PROTECTED] Subject: [jQuery] Re: Anyone see anything wrong in this code? Rick, I'm trying to implement validation using Jorn's Validation plug-in and every time I click into a form field, then click out, IE 7 locks up. Everything is working fine in FF (except the Submit button, but that's an issue for later...) The debug = true statement will prevent the form from submitting. I'm also wondering if perhaps that's the cause of your IE7 lockups. What happens if you remove the debug statement? Also, try commenting out the event: blur line and see what happens. There could be some kind of circular logic that IE's running into do. -Dan
[jQuery] Re: Anyone see anything wrong in this code?
Jörn Zaefferer schrieb: Rick Faircloth schrieb: Commenting out the blur line does prevent IE from locking up. (Why doesn't this happen in FF?), but then, of course, no validation occurs. When I change blur to keyup everything seems to work fine. What's up with that? Keyup is fine, but I prefer to allow users a little more time to correct entries rather than hammering them with an error message per keystroke, perhaps. I did comment out the debug statement, too... forgot that would prevent submission... I thought that you could prevent any problems with validation on blur by disabling focusInvalid. Let me know if you find anything that may exaplain why its happening. An interesting approach would be keyup with a timeout, like in the autocomplete plugin. What about the change event? -- Klaus
[jQuery] Re: Anyone see anything wrong in this code?
Klaus Hartl schrieb: Commenting out the blur line does prevent IE from locking up. (Why doesn't this happen in FF?), but then, of course, no validation occurs. When I change blur to keyup everything seems to work fine. What's up with that? Keyup is fine, but I prefer to allow users a little more time to correct entries rather than hammering them with an error message per keystroke, perhaps. I did comment out the debug statement, too... forgot that would prevent submission... I thought that you could prevent any problems with validation on blur by disabling focusInvalid. Let me know if you find anything that may exaplain why its happening. An interesting approach would be keyup with a timeout, like in the autocomplete plugin. What about the change event? As that is also triggered on blur, the same problem with focussing invalid elements would most likely occur. But I've got an idea how to prevent that in the first place: Just disable focus invalid completely for element-based events, only do it on submit, where it is supposed to do its job. -- Jörn Zaefferer http://bassistance.de