Hello.
I'm trying to create an AHAH example solution for a form and I've run into a problem where I'm getting a 403 error from the AHAH callback.
Here is the specific error: An HTTP error 403 occurred. /my_module/js
And this is the code:
<?php
/**
* Implementation of hook_menu. Adds a page callback for the form
* and a menu callback for the AHAH button to work on.
*
**/
function my_module_menu() {
$items = array();
$items['admin/ahah/ahah_test'] = array(
'title' => 'AHAH test',
'description' => 'This is an AHAH test.',
'page callback' => 'drupal_get_form',
'page arguments' => array('my_module_ahah_form'),
'access arguments' => array('access content'),
);
$items['my_module/js'] = array(
'title' => 'AHAH Test callback',
'page_callback' => 'my_module_js',
'access arguments' => array('access content'),
'type' => MENU_CALLBACK,
);
return $items;
}
/**
* Callback for the AHAH magic, defined in hook_menu as a path
* and added to the form on submit buttons AHAH property.
*
* The return HTML will be output by AHAH, needs to be JSON formatted.
*
**/
function my_module_js() {
return drupal_json(array('status' => TRUE, 'data' => "Hello Drupal World"));;
}
/**
* The actual form, defines a fieldset and a wrapper containing a field and









