Personal tools
You are here: Home Leocornus leocornus.tracclient AJAX validation for owner and reporter fields

AJAX validation for owner and reporter fields

— filed under:

validation logic to make sure the user exist for what ever fields applys. owner field reporter field. hook to the leave input field event might be reasonable.

jQuery.blur Method

We need use the blur method for bothe owner and reporter fields.

The Final Implementaion

  • blur event for owner field to send AJAX requrst
  • AJAX request will query to validate username
  • if not valid username, a hidden field's value will be set to owner field's field id
  • the jquery ui autocomplete field will trigger blur() event for search, close events.
  • Form submit event will check the hidden field to decide this is a valid username or not!

Tracking History

When Who What Done
2013-02-01 13:06 Sean Chen re44f60b and r109cc82 will make sure the usernames are valid!
-- 4.0 Hours, 100.0% Done
Document Actions