Debugging in FireBug reveals that the error originates inside YUI when the event handler that makes the asynchronous POST request is attached to a form submit button click event. The problem arises because when the form name-value pairs are serialized by YUI, the value "null" gets appended to the string. This causes an error in ColdFusion's Java runtime for a POST request, but not for a GET. Attaching the event handler to the form submit event, or changing the button to type="button" rather than type="submit", avoids the error.
None of the available workarounds will be satisfactory in all circumstances. When a form has multiple submit buttons, you cannot assign the event handlers to the form submit event rather than to the individual buttons. Switching from an input element type="submit" to type="button" will not support non-Javascript-enabled browsers (you'd have to do something tricky like writing the html with input type="submit", and using Javascript to rewrite it to type="button"). It's not clear whether this is best regarded as a YUI bug or a ColdFusion bug. Though the error originates inside YUI, since PHP does not generate an error there may be some justification for considering this at least partially a ColdFusion bug. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278096 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

