Ticket #2272 (new defect)

Opened 11 months ago

Ajax validation event handling clashes

Reported by: mrickerby Owned by: aoneil
Priority: medium Milestone:
Component: (Unknown) Version: 2.2.2-rc1
Severity: medium effort / impact Keywords:
Cc: Hours:

Description

The javascript code used to check valid fields is incompatible with the Ajax validation event handlers being applied by AjaxUniqueTextField? and the like.

The specific problems are with this following code pattern:

if(fromAnOnBlur.name == 'FieldName')
    require(fromAnOnBlur);

This overrides the default taboff/onblur events for each form field, meaning that it is impossible to share validation events between onkeyup and onblur.

Specifically, it means that when using the default AjaxUniqueTextField? functionality, different validation routines are run, depending on the type of event being fired. This can only lead to the path of pain and misery.

Note: See TracTickets for help on using tickets.