[support] AHAH 403 error
Scott
scott at bscottholmes.com
Wed May 12 06:54:16 UTC 2010
Okay, I've been at this all day but no joy. I have seen the question
asked several times but no answers. When I click the submit button I
get a 403 error message.
It's my understanding that the path ('a_module/js/%') should trigger the
function ('a_module_search_js'). Instead I get the 403 error.
/* hook_menu */
function a_module_menu() {
$items = array();
$items['admin/settings/a_module'] = array(
'title' => 'AModule',
'description' => 'Provides the configuration options for how AModule
operates on the site.',
'page callback' => 'drupal_get_form',
'page arguments' => array('a_module_admin_settings'),
'access arguments' => array('administer a_module'),
'file' => 'a_module.admin.inc',
);
$items['a_module/js/%'] = array(
'page callback' => 'a_module_search_js',
'page arguments' => array(2),
'type' => MENU_CALLBACK,
);
return $items;
}
/* the submit button from a form */
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Submit'),
'#submit' => array('a_module_a_module_submit_handler'),
'#ahah' => array(
'path' => 'a_module/js/0',
'wrapper' => 'div_id',
'method' => 'replace',
'effect' => 'fade',
),
More information about the support
mailing list