[support] AHAH 403 error

Scott scott at bscottholmes.com
Wed May 12 20:49:07 UTC 2010


I suppose I'm making some progress with this as now I just get a generic
javascript error message that an error has occurred, no number or
anything specific.  My hook_menu item looks like this:

  $items['citygrid/js/%'] = array(
    'title' => 'CityGrid Search',
    'title callback' => FALSE,
    'access callback' => TRUE,
    'access arguments' => array('access callback'),
    'page callback' => 'citygrid_search_js',
    'page arguments' => array(2),
    'type' => MENU_CALLBACK,
  );

The page callback function looks like this:

function citygrid_search_js($delta=0) {
drupal_set_message("Hello World...");
}

To let a cat out of the bag, this is a module for retrieving search
results using CitySearch's new API.  The configuration functions all
work and the form for collecting search criteria work.  It even produces
the url for fetching xml or json.  What I can't seem to do is get the
submit button to work correctly.


On Wed, 2010-05-12 at 08:59 -0700, Metzler, David wrote:
> Did you clear the cache after doing so?  I don't think you need the
> 'access arguments'  entry... 
> 
> You might reference this for a better example, that honors the access
> content permissions setting. 
> 
> http://api.drupal.org/api/function/hook_menu/6
> 
> Also remember to clear your cache before testing. 
> 




More information about the support mailing list