The ahah_helper.js file is included to allow ahah callbacks to add additional ahah controls. This file is loaded using ahah_helper_register(). However, when the form is submitted using a normal button and the form reloads because the validation fails, ahah_helper_register() is not run and ahah_helper.js is not loaded. As a result, from that moment on new ahah elements are not registered.

I worked around this problem by registering ahah_helper_register() as a validator for the whole form:

	$form = array(
		'#validate' => array('ahah_helper_register'),
	);

Comments

voidberg’s picture

Status: Active » Closed (duplicate)