This is probably way off, but it cost me hours on a similar feeling issue. My AJAX was failing because of an unintended redirect. This caused the AJAX to fail giving a blank return value.
My cause of the redirect was https to http forwarding that can happen with the Secure Site module (a setting that forces http forwarding for pages that are marked to not be shown in https). I added a new exception, which stopped the https -> http forwarding, and it was all fixed.
Just a thought.
Greg
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Scott Sent: Wednesday, May 12, 2010 1:49 PM To: support@drupal.org Subject: Re: [support] AHAH 403 error
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.